N°8545 - Standardize return message from password reset

This commit is contained in:
Stephen Abello
2026-02-19 10:09:38 +01:00
parent 9d3311e623
commit c62a78b7ac

View File

@@ -260,12 +260,13 @@ class LoginWebPage extends NiceWebPage
} }
} }
$oTwigContext = new LoginTwigRenderer();
$aVars = $oTwigContext->GetDefaultVars();
$oTwigContext->Render($this, 'forgotpwdsent.html.twig', $aVars);
} catch (Exception $e) { } 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) public function DisplayResetPwdForm($sErrorMessage = null)