Merge pull request #1499 from basteyy/patch-1

Fix handling array as object
This commit is contained in:
Diego Najar 2023-02-22 19:26:21 +01:00 committed by GitHub
commit 87c52d25d8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -165,7 +165,7 @@ class Login {
// Get user from database and login
$user = $this->users->getUserDB($username);
$this->setLogin($username, $user['role'], $user->tokenAuth());
$this->setLogin($username, $user['role'], $user['tokenAuth']);
Log::set(__METHOD__.LOG_SEP.'User authenticated via Remember Me.');
return true;
}
@ -185,4 +185,4 @@ class Login {
Session::destroy();
return true;
}
}
}