mirror of
				https://gitlab.com/MrFry/mrfrys-node-server
				synced 2025-04-01 20:24:18 +02:00 
			
		
		
		
	Auth logging prettying
This commit is contained in:
		| @@ -25,13 +25,15 @@ module.exports = function (options) { | ||||
|       return req.url.split('?')[0] === exc | ||||
|     }) | ||||
|  | ||||
|     // TODO Allowing all urls with _next in it, but not in params | ||||
|     // FIXME Allowing all urls with _next in it, but not in params | ||||
|     if (req.url.split('?')[0].includes('_next')) { | ||||
|       req.session = { isException: true } | ||||
|       next() | ||||
|       return | ||||
|     } | ||||
|  | ||||
|     if (isException) { | ||||
|       req.session = { isException: true } | ||||
|       logger.DebugLog(`EXCEPTION: ${req.url}`, 'auth', 1) | ||||
|       next() | ||||
|       return | ||||
|   | ||||
		Reference in New Issue
	
	Block a user