mirror of
https://github.com/postfixadmin/postfixadmin.git
synced 2024-09-19 19:22:14 +02:00
more Login pacrypt() exception handling - see https://github.com/postfixadmin/postfixadmin/issues/420
This commit is contained in:
parent
0a55868736
commit
85960b7096
@ -40,7 +40,13 @@ class Login {
|
||||
}
|
||||
|
||||
// try and be near constant time regardless of whether the db user exists or not
|
||||
$x = pacrypt('abc', 'def');
|
||||
try {
|
||||
$x = pacrypt('abc', 'def');
|
||||
}
|
||||
catch(\Exception $e) {
|
||||
error_log("Error trying to call pacrypt()");
|
||||
error_log($e);
|
||||
}
|
||||
|
||||
return hash_equals('not', 'comparable');
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user