From 1b8d474756f322726461fbe0cae3bf95aac92d3f Mon Sep 17 00:00:00 2001 From: Wingy Date: Mon, 3 Oct 2022 10:42:29 -0400 Subject: [PATCH] add guest password querystring --- middlewares/verifyAuth.js | 1 + 1 file changed, 1 insertion(+) diff --git a/middlewares/verifyAuth.js b/middlewares/verifyAuth.js index 50ab33d..bccd43e 100644 --- a/middlewares/verifyAuth.js +++ b/middlewares/verifyAuth.js @@ -9,6 +9,7 @@ module.exports = options => { return res.send('auth fail') } if (authed) return next() + if (_CC.config.guestPassword && req.query.pw === _CC.config.guestPassword) return next() res.redirect(options.failureRedirect || config.defaultFailureRedirect) } }