1
0
mirror of https://github.com/postfixadmin/postfixadmin.git synced 2025-08-09 05:02:44 +03:00

psalm improvements

This commit is contained in:
David Goodwin
2021-02-17 21:29:18 +00:00
parent c87d8a8319
commit b2831d1241
8 changed files with 10 additions and 12 deletions

View File

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