add guest password querystring

This commit is contained in:
Wingy 2022-10-03 10:42:29 -04:00
parent 2a98752147
commit 1b8d474756

View file

@ -9,6 +9,7 @@ module.exports = options => {
return res.send('auth fail') return res.send('auth fail')
} }
if (authed) return next() if (authed) return next()
if (_CC.config.guestPassword && req.query.pw === _CC.config.guestPassword) return next()
res.redirect(options.failureRedirect || config.defaultFailureRedirect) res.redirect(options.failureRedirect || config.defaultFailureRedirect)
} }
} }