mirror of
https://github.com/postfixadmin/postfixadmin.git
synced 2026-11-20 23:43:26 +03:00
and stop logging the exception trace here too, squash error_log() messages into one call
This commit is contained in:
1 file changed
+2
-4
+2
-4
@@ -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');
|
||||
|
||||
Reference in new issue
Block a user