From 63a08c4bd398efd72ec0c185a7a61f56a0324122 Mon Sep 17 00:00:00 2001 From: Elian Doran Date: Thu, 9 Oct 2025 19:33:21 +0300 Subject: [PATCH] fix(login): failure to load if password was failed --- apps/server/src/routes/login.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/server/src/routes/login.ts b/apps/server/src/routes/login.ts index 107fb1494..873562cd0 100644 --- a/apps/server/src/routes/login.ts +++ b/apps/server/src/routes/login.ts @@ -14,7 +14,7 @@ import openIDEncryption from '../services/encryption/open_id_encryption.js'; import { getCurrentLocale } from "../services/i18n.js"; function loginPage(req: Request, res: Response) { - // Login page is triggered twice. Once here, and another time if the password is failed. + // Login page is triggered twice. Once here, and another time (see sendLoginError) if the password is failed. res.render('login', { wrongPassword: false, wrongTotp: false, @@ -177,6 +177,7 @@ function sendLoginError(req: Request, res: Response, errorType: 'password' | 'to assetPath: assetPath, assetPathFragment: assetUrlFragment, appPath: appPath, + currentLocale: getCurrentLocale() }); }