mirror of
https://github.com/glenndehaan/unifi-voucher-site.git
synced 2026-04-05 08:54:17 -04:00
Replaced AUTH_PASSWORD with AUTH_INTERNAL_PASSWORD
This commit is contained in:
@@ -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`);
|
||||
|
||||
Reference in New Issue
Block a user