Fix handling array as object

At this line, the  `$user ` is a `array` and not the User Object `User`.
This commit is contained in:
Sebastian 2023-02-14 20:57:52 +01:00 committed by GitHub
parent 532140d967
commit 027c85e968
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;
}
}
}