mirror of
https://gitlab.com/MrFry/mrfrys-node-server
synced 2025-04-01 20:24:18 +02:00
Added contact to login, added some auth exceptions
This commit is contained in:
parent
143894288a
commit
a6d260f6af
6 changed files with 26 additions and 6 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue