Remove uneeded variable.
This commit is contained in:
@@ -190,13 +190,10 @@ class Login extends BaseModule
|
|||||||
]
|
]
|
||||||
);
|
);
|
||||||
if (DBA::isResult($user)) {
|
if (DBA::isResult($user)) {
|
||||||
// Time safe comparision of the two hashes.
|
if (!hash_equals(
|
||||||
$validSession = hash_equals(
|
|
||||||
Authentication::getCookieHashForUser($user),
|
Authentication::getCookieHashForUser($user),
|
||||||
$data->hash
|
$data->hash
|
||||||
);
|
)) {
|
||||||
|
|
||||||
if (!$validSession) {
|
|
||||||
Logger::log("Hash for user " . $data->uid . " doesn't fit.");
|
Logger::log("Hash for user " . $data->uid . " doesn't fit.");
|
||||||
Authentication::deleteSession();
|
Authentication::deleteSession();
|
||||||
$a->internalRedirect();
|
$a->internalRedirect();
|
||||||
|
|||||||
Reference in New Issue
Block a user