step 10.6: done
This commit is contained in:
+1
-1
@@ -28,7 +28,7 @@ const registerLimiter = rateLimit({
|
||||
|
||||
const loginLimiter = rateLimit({
|
||||
windowMs: 15 * 60 * 1000, // 15 minutes
|
||||
max: process.env.NODE_ENV === 'test' ? 1000 : 100,
|
||||
max: process.env.NODE_ENV === 'test' ? 100 : 100,
|
||||
message: { ok: false, error: { code: 'RATE_LIMITED', message: 'Too many login attempts. Try again later.' } },
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user