From 740a8d3326d691cf6054cd02c18cae7c1816ea98 Mon Sep 17 00:00:00 2001 From: David Goodwin Date: Fri, 20 Nov 2026 13:58:49 +0000 Subject: [PATCH] and stop logging the exception trace here too, squash error_log() messages into one call --- model/Login.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/model/Login.php b/model/Login.php index 0ed98bd7..cde59144 100644 --- a/model/Login.php +++ b/model/Login.php @@ -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');