From dfaca0d42d7835b94a430ecdbe9db4f185a5938b Mon Sep 17 00:00:00 2001 From: Jared Hancock <jared@osticket.com> Date: Thu, 6 Mar 2014 14:39:22 -0600 Subject: [PATCH] oops: Repair pwreset logins --- include/class.auth.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/include/class.auth.php b/include/class.auth.php index a4f32d86b..812f66215 100644 --- a/include/class.auth.php +++ b/include/class.auth.php @@ -365,16 +365,14 @@ abstract class StaffAuthenticationBackend extends AuthenticationBackend { list($id, $auth) = explode(':', $_SESSION['_auth']['staff']['key']); if (!($bk=static::getBackend($id)) //get the backend - || !$bk->supportsAuthentication() //Make sure it can authenticate || !($staff = $bk->validate($auth)) //Get AuthicatedUser || !($staff instanceof Staff) || $staff->getId() != $_SESSION['_auth']['staff']['id'] // check ID - ) + ) return null; $staff->setAuthKey($_SESSION['_auth']['staff']['key']); - return $staff; } -- GitLab