mirror of
https://github.com/zadam/trilium.git
synced 2025-10-20 15:19:01 +02:00
fix(login): failure to load if password was failed
This commit is contained in:
parent
b34fbff6d1
commit
63a08c4bd3
@ -14,7 +14,7 @@ import openIDEncryption from '../services/encryption/open_id_encryption.js';
|
|||||||
import { getCurrentLocale } from "../services/i18n.js";
|
import { getCurrentLocale } from "../services/i18n.js";
|
||||||
|
|
||||||
function loginPage(req: Request, res: Response) {
|
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', {
|
res.render('login', {
|
||||||
wrongPassword: false,
|
wrongPassword: false,
|
||||||
wrongTotp: false,
|
wrongTotp: false,
|
||||||
@ -177,6 +177,7 @@ function sendLoginError(req: Request, res: Response, errorType: 'password' | 'to
|
|||||||
assetPath: assetPath,
|
assetPath: assetPath,
|
||||||
assetPathFragment: assetUrlFragment,
|
assetPathFragment: assetUrlFragment,
|
||||||
appPath: appPath,
|
appPath: appPath,
|
||||||
|
currentLocale: getCurrentLocale()
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user