no longer reference SwiftException (deprecated)

This commit is contained in:
Andy Miller
2022-10-05 08:07:09 -06:00
parent 8bb7465435
commit 97ab52df81

View File

@@ -487,11 +487,8 @@ class LoginController extends AdminController
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'));
} catch (\RuntimeException|\Swift_SwiftException $e) {
} catch (\Exception $e) {
$rateLimiter->resetRateLimit($username);
/** @var Debugger $debugger */