From c3e7a97c8a001166e2a9b8e80ed2ddf3127e9ce7 Mon Sep 17 00:00:00 2001 From: hwinkel Date: Sat, 2 May 2026 21:44:12 +0200 Subject: [PATCH] fix: update login rate limit to allow 15 attempts within 3 minutes --- app/lib/rate-limiter.server.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/lib/rate-limiter.server.ts b/app/lib/rate-limiter.server.ts index 4665065..7d25c6f 100644 --- a/app/lib/rate-limiter.server.ts +++ b/app/lib/rate-limiter.server.ts @@ -1,9 +1,9 @@ import { RateLimiterMemory } from "rate-limiter-flexible"; -// Max. 5 Loginversuche pro IP innerhalb von 15 Minuten +// Max. 15 Loginversuche pro IP innerhalb von 3 Minuten const loginLimiter = new RateLimiterMemory({ - points: 5, - duration: 60 * 15, + points: 15, + duration: 60 * 3, }); export async function checkLoginRateLimit(request: Request): Promise {