Replaced AUTH_PASSWORD with AUTH_INTERNAL_PASSWORD

This commit is contained in:
Glenn de Haan
2024-09-30 18:53:07 +02:00
parent 4b2e4ce93a
commit 11873f4879
4 changed files with 6 additions and 6 deletions

View File

@@ -148,7 +148,7 @@ if(variables.serviceWeb) {
return;
}
const passwordCheck = req.body.password === variables.authPassword;
const passwordCheck = req.body.password === variables.authInternalPassword;
if (!passwordCheck) {
res.cookie('flashMessage', JSON.stringify({type: 'error', message: 'Password Invalid!'}), {httpOnly: true, expires: new Date(Date.now() + 24 * 60 * 60 * 1000)}).redirect(302, `${req.headers['x-ingress-path'] ? req.headers['x-ingress-path'] : ''}/login`);