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

pwreset: Fixup password reset system

Turns out that the new authentication system incorrectly cancels the reset
tokens when it processes logins rather than after the user successfully
resets his/her password
parent 770fe4e0
No related branches found
No related tags found
No related merge requests found
......@@ -322,8 +322,6 @@ abstract class StaffAuthenticationBackend extends AuthenticationBackend {
Signal::send('auth.login.succeeded', $staff);
$staff->cancelResetTokens();
return true;
}
......
......@@ -53,8 +53,7 @@ if($_POST) {
$errors = array();
if ($staff = StaffAuthenticationBackend::processSignOn($errors)) {
$info = array('page' => 'index.php');
header('Location: '.$info['page']);
exit();
Http::redirect($info['page']);
}
elseif (isset($errors['msg'])) {
$msg = $errors['msg'];
......
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