Rev 1199 | Rev 1212 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1199 | Rev 1201 | ||
---|---|---|---|
Line 732... | Line 732... | ||
732 | if (OIDplus::baseConfig()->getValue('DEBUG') && $plugin->availableForHash($reason) && $plugin->availableForVerify($reason)) { |
732 | if (OIDplus::baseConfig()->getValue('DEBUG') && $plugin->availableForHash($reason) && $plugin->availableForVerify($reason)) { |
733 | $password = generateRandomString(25); |
733 | $password = generateRandomString(25); |
734 | 734 | ||
735 | try { |
735 | try { |
736 | $authInfo = $plugin->generate($password); |
736 | $authInfo = $plugin->generate($password); |
737 | } catch (OIDplusException $e) { |
737 | } catch (\Exception $e) { |
738 | // This can happen when the AuthKey is too long for the database field |
738 | // This can happen when the AuthKey is too long for the database field |
739 | // Note: The constructor and setters of OIDplusRAAuthInfo() already check for length and null/false values. |
739 | // Note: The constructor and setters of OIDplusRAAuthInfo() already check for length and null/false values. |
740 | throw new OIDplusException(_L('Auth plugin "%1" is erroneous: %2',basename($plugin->getPluginDirectory()),$e->getMessage())); |
740 | throw new OIDplusException(_L('Auth plugin "%1" is erroneous: %2',basename($plugin->getPluginDirectory()),$e->getMessage())); |
741 | } |
741 | } |
742 | 742 |