Skip to content
Snippets Groups Projects
Commit f9f0c644 authored by Jared Hancock's avatar Jared Hancock
Browse files

Cancel reset tokens on successful, interactive login

parent 127f93c4
No related branches found
No related tags found
No related merge requests found
......@@ -322,6 +322,9 @@ abstract class StaffAuthenticationBackend extends AuthenticationBackend {
Signal::send('auth.login.succeeded', $staff);
if ($bk->supportsAuthentication())
$staff->cancelResetTokens();
return true;
}
......@@ -431,6 +434,9 @@ abstract class UserAuthenticationBackend extends AuthenticationBackend {
$user->getUserName(), $user->getId(), $_SERVER['REMOTE_ADDR']);
$ost->logDebug('User login', $msg);
if ($bk->supportsAuthentication() && ($acct=$user->getAccount()))
$acct->cancelResetTokens();
return true;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment