From c62a78b7ace4dc7e9b6837d65ae0408f9958287a Mon Sep 17 00:00:00 2001 From: Stephen Abello Date: Thu, 19 Feb 2026 10:09:38 +0100 Subject: [PATCH] =?UTF-8?q?N=C2=B08545=20-=20Standardize=20return=20messag?= =?UTF-8?q?e=20from=20password=20reset?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/loginwebpage.class.inc.php | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/application/loginwebpage.class.inc.php b/application/loginwebpage.class.inc.php index d5cf26b312..4af12f17b7 100644 --- a/application/loginwebpage.class.inc.php +++ b/application/loginwebpage.class.inc.php @@ -260,12 +260,13 @@ class LoginWebPage extends NiceWebPage } } - $oTwigContext = new LoginTwigRenderer(); - $aVars = $oTwigContext->GetDefaultVars(); - $oTwigContext->Render($this, 'forgotpwdsent.html.twig', $aVars); } catch (Exception $e) { - $this->DisplayForgotPwdForm(true, $e->getMessage()); + IssueLog::Info('Failed to process the forgot password request for user "'.$sAuthUser.'": '.$e->getMessage()); } + + $oTwigContext = new LoginTwigRenderer(); + $aVars = $oTwigContext->GetDefaultVars(); + $oTwigContext->Render($this, 'forgotpwdsent.html.twig', $aVars); } public function DisplayResetPwdForm($sErrorMessage = null)