From 886f6433db8bc45827f8b7316e938e6d4291f1e2 Mon Sep 17 00:00:00 2001 From: Alexander Borg Date: Sun, 14 Sep 2025 18:03:55 +0200 Subject: [PATCH] Fix jwt-token --- server/middleware/ip-restriction.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/server/middleware/ip-restriction.js b/server/middleware/ip-restriction.js index 9973f5d..39581d1 100644 --- a/server/middleware/ip-restriction.js +++ b/server/middleware/ip-restriction.js @@ -159,6 +159,12 @@ class IPRestrictionMiddleware { return next(); } + // Skip IP restrictions for auth config - users need to see login form and get proper error + if (req.path === '/api/auth/config') { + console.log('🔍 IP Restriction - Skipping for auth config route'); + return next(); + } + console.log('🔍 IP Restriction Check - Path:', req.path, 'Method:', req.method); // Determine tenant