0
0
mirror of https://github.com/postfixadmin/postfixadmin.git synced 2024-09-19 19:22:14 +02:00

add hash_equals call

This commit is contained in:
David Goodwin 2021-01-14 11:16:31 +00:00
parent 8b1adbcf1f
commit 2060422d9a

View File

@ -34,7 +34,8 @@ class Login {
} catch (\Exception $e) {
error_log("Error while trying to call pacrypt()");
error_log($e);
return false; // just refuse to login?
hash_equals("not", "comparable");
return false; // just refuse to login?
}
return hash_equals($row['password'], $crypt_password);
}