and stop logging the exception trace here too, squash error_log() messages into one call

This commit is contained in:
David Goodwin committed 2026-11-20 13:58:49 +00:00
1 parent ce55237b3f
commit 740a8d3326
1 file changed
+2 -4
+2 -4
View File
@@ -38,8 +38,7 @@ class Login
try {
$crypt_password = pacrypt($password, $row['password'], $username);
} catch (\Exception $e) {
error_log("Error while trying to call pacrypt()");
error_log("" . $e->getMessage());
error_log("Error while trying to call pacrypt() : " . $e->getMessage());
hash_equals("not", "comparable");
return false; // just refuse to login?
}
@@ -51,8 +50,7 @@ class Login
// this causes errors with e.g. dovecot as there is no prefix.
$x = pacrypt('abc', 'def');
} catch (\Exception $e) {
error_log("Error trying to call pacrypt()");
error_log("" . $e);
error_log("Error trying to call pacrypt() : " . $e->getMessage());
}
return hash_equals('not', 'comparable');