add guest password querystring
This commit is contained in:
parent
2a98752147
commit
1b8d474756
1 changed files with 1 additions and 0 deletions
|
@ -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)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue