We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c0f49c6 commit dfaca0dCopy full SHA for dfaca0d
include/class.auth.php
@@ -365,16 +365,14 @@ static function getUser() {
365
list($id, $auth) = explode(':', $_SESSION['_auth']['staff']['key']);
366
367
if (!($bk=static::getBackend($id)) //get the backend
368
- || !$bk->supportsAuthentication() //Make sure it can authenticate
369
|| !($staff = $bk->validate($auth)) //Get AuthicatedUser
370
|| !($staff instanceof Staff)
371
|| $staff->getId() != $_SESSION['_auth']['staff']['id'] // check ID
372
- )
+ )
373
return null;
374
375
$staff->setAuthKey($_SESSION['_auth']['staff']['key']);
376
377
-
378
return $staff;
379
}
380
0 commit comments