Skip to content

Commit dfaca0d

Browse files
author
Jared Hancock
committed
oops: Repair pwreset logins
1 parent c0f49c6 commit dfaca0d

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

include/class.auth.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -365,16 +365,14 @@ static function getUser() {
365365
list($id, $auth) = explode(':', $_SESSION['_auth']['staff']['key']);
366366

367367
if (!($bk=static::getBackend($id)) //get the backend
368-
|| !$bk->supportsAuthentication() //Make sure it can authenticate
369368
|| !($staff = $bk->validate($auth)) //Get AuthicatedUser
370369
|| !($staff instanceof Staff)
371370
|| $staff->getId() != $_SESSION['_auth']['staff']['id'] // check ID
372-
)
371+
)
373372
return null;
374373

375374
$staff->setAuthKey($_SESSION['_auth']['staff']['key']);
376375

377-
378376
return $staff;
379377
}
380378

0 commit comments

Comments
 (0)