Skip to content
Snippets Groups Projects
Commit 7b445c92 authored by Peter Rotich's avatar Peter Rotich
Browse files

Merge pull request #671 from greezybacon/issue/pwreset-broken


pwreset: Fixup password reset system

Reviewed-By: default avatarPeter Rotich <peter@osticket.com>
parents 770fe4e0 b2550b37
No related branches found
No related tags found
No related merge requests found
...@@ -322,8 +322,6 @@ abstract class StaffAuthenticationBackend extends AuthenticationBackend { ...@@ -322,8 +322,6 @@ abstract class StaffAuthenticationBackend extends AuthenticationBackend {
Signal::send('auth.login.succeeded', $staff); Signal::send('auth.login.succeeded', $staff);
$staff->cancelResetTokens();
return true; return true;
} }
......
...@@ -53,8 +53,7 @@ if($_POST) { ...@@ -53,8 +53,7 @@ if($_POST) {
$errors = array(); $errors = array();
if ($staff = StaffAuthenticationBackend::processSignOn($errors)) { if ($staff = StaffAuthenticationBackend::processSignOn($errors)) {
$info = array('page' => 'index.php'); $info = array('page' => 'index.php');
header('Location: '.$info['page']); Http::redirect($info['page']);
exit();
} }
elseif (isset($errors['msg'])) { elseif (isset($errors['msg'])) {
$msg = $errors['msg']; $msg = $errors['msg'];
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment