mirror of
https://github.com/getgrav/grav-plugin-admin.git
synced 2025-11-01 10:56:08 +01:00
no longer reference SwiftException (deprecated)
This commit is contained in:
@@ -487,11 +487,8 @@ class LoginController extends AdminController
|
|||||||
throw new \RuntimeException('Sending email failed');
|
throw new \RuntimeException('Sending email failed');
|
||||||
}
|
}
|
||||||
|
|
||||||
// For testing only!
|
|
||||||
//Admin::DEBUG && Admin::addDebugMessage(sprintf('Email sent to %s', $to), $body);
|
|
||||||
|
|
||||||
$this->setMessage($this->translate('PLUGIN_ADMIN.FORGOT_INSTRUCTIONS_SENT_VIA_EMAIL'));
|
$this->setMessage($this->translate('PLUGIN_ADMIN.FORGOT_INSTRUCTIONS_SENT_VIA_EMAIL'));
|
||||||
} catch (\RuntimeException|\Swift_SwiftException $e) {
|
} catch (\Exception $e) {
|
||||||
$rateLimiter->resetRateLimit($username);
|
$rateLimiter->resetRateLimit($username);
|
||||||
|
|
||||||
/** @var Debugger $debugger */
|
/** @var Debugger $debugger */
|
||||||
|
|||||||
Reference in New Issue
Block a user