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