Added contact to login, added some auth exceptions

This commit is contained in:
MrFry 2020-04-08 19:24:17 +02:00
parent 143894288a
commit a6d260f6af
6 changed files with 26 additions and 6 deletions

View file

@ -22,7 +22,7 @@ module.exports = function (options) {
const ip = req.headers['cf-connecting-ip'] || req.connection.remoteAddress
const sessionID = req.cookies.sessionID
const isException = exceptions.some((exc) => {
return req.url === exc
return req.url.split('?')[0] === exc
})
// TODO Allowing all urls with _next in it, but not in params