fix: update login rate limit to allow 15 attempts within 3 minutes
Build and Push Docker Image / build (push) Successful in 1m30s

This commit is contained in:
hwinkel
2026-05-02 21:44:12 +02:00
parent fab53fc76e
commit c3e7a97c8a
+3 -3
View File
@@ -1,9 +1,9 @@
import { RateLimiterMemory } from "rate-limiter-flexible"; 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({ const loginLimiter = new RateLimiterMemory({
points: 5, points: 15,
duration: 60 * 15, duration: 60 * 3,
}); });
export async function checkLoginRateLimit(request: Request): Promise<string | null> { export async function checkLoginRateLimit(request: Request): Promise<string | null> {