Rev 1086 | Rev 1096 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1086 | Rev 1088 | ||
---|---|---|---|
Line 373... | Line 373... | ||
373 | } |
373 | } |
374 | 374 | ||
375 | // Generate RA passwords |
375 | // Generate RA passwords |
376 | 376 | ||
377 | public static function raGeneratePassword($password): OIDplusRAAuthInfo { |
377 | public static function raGeneratePassword($password): OIDplusRAAuthInfo { |
378 | $def_method = OIDplus::config()->getValue('default_ra_auth_method'); |
- | |
379 | - | ||
380 | $plugins = OIDplus::getAuthPlugins(); |
378 | $plugin = OIDplus::getDefaultRaAuthPlugin(); |
381 | foreach ($plugins as $plugin) { |
- | |
382 | if (basename($plugin->getPluginDirectory()) === $def_method) { |
- | |
383 | return $plugin->generate(self::raPepperProcessing($password)); |
379 | return $plugin->generate(self::raPepperProcessing($password)); |
384 | } |
380 | } |
385 | } |
- | |
386 | throw new OIDplusException(_L('Default RA auth method/plugin "%1" not found',$def_method)); |
- | |
387 | } |
- | |
388 | 381 | ||
389 | // Generate admin password |
382 | // Generate admin password |
390 | 383 | ||
391 | /* Nothing here; the admin password will be generated in setup_base.js , purely in the web-browser */ |
384 | /* Nothing here; the admin password will be generated in setup_base.js , purely in the web-browser */ |
392 | 385 |