mirror of
https://github.com/friendica/friendica
synced 2024-11-10 04:22:54 +00:00
Remove uneeded variable.
This commit is contained in:
parent
dc01bdbc80
commit
3940e804e3
1 changed files with 2 additions and 5 deletions
|
@ -190,13 +190,10 @@ class Login extends BaseModule
|
|||
]
|
||||
);
|
||||
if (DBA::isResult($user)) {
|
||||
// Time safe comparision of the two hashes.
|
||||
$validSession = hash_equals(
|
||||
if (!hash_equals(
|
||||
Authentication::getCookieHashForUser($user),
|
||||
$data->hash
|
||||
);
|
||||
|
||||
if (!$validSession) {
|
||||
)) {
|
||||
Logger::log("Hash for user " . $data->uid . " doesn't fit.");
|
||||
Authentication::deleteSession();
|
||||
$a->internalRedirect();
|
||||
|
|
Loading…
Reference in a new issue