0
0
mirror of https://github.com/postfixadmin/postfixadmin.git synced 2024-09-20 03:36:20 +02:00

more Login pacrypt() exception handling - see https://github.com/postfixadmin/postfixadmin/issues/420

This commit is contained in:
David Goodwin 2021-01-14 11:13:02 +00:00
parent 0a55868736
commit 85960b7096

View File

@ -40,7 +40,13 @@ 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) {
error_log("Error trying to call pacrypt()");
error_log($e);
}
return hash_equals('not', 'comparable');
}