This commit is contained in:
David Goodwin committed 2021-01-14 17:07:55 +00:00
1 parent 61585e8b02
commit 79737bc049
2 files changed
+3 -4

No files matched your search

+2 -3
View File
@@ -35,7 +35,7 @@ class Login {
error_log("Error while trying to call pacrypt()");
error_log($e);
hash_equals("not", "comparable");
return false; // just refuse to login?
return false; // just refuse to login?
}
return hash_equals($row['password'], $crypt_password);
}
@@ -43,8 +43,7 @@ class Login {
// try and be near constant time regardless of whether the db user exists or not
try {
$x = pacrypt('abc', 'def');
}
catch(\Exception $e) {
} catch (\Exception $e) {
error_log("Error trying to call pacrypt()");
error_log($e);
}
+1 -1
View File
@@ -67,7 +67,7 @@ session_unset();
session_destroy();
session_start();
if($error) {
if ($error) {
flash_error($error);
}