step 10.6: done

This commit is contained in:
bepis
2026-10-22 23:55:28 +11:00
parent e862f3cc21
commit 9a31c7c460
4 changed files with 12 additions and 10 deletions
+1 -1
View File
@@ -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.' } },
});