fix: update login rate limit to allow 15 attempts within 3 minutes
Build and Push Docker Image / build (push) Successful in 1m30s
Build and Push Docker Image / build (push) Successful in 1m30s
This commit is contained in:
@@ -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<string | null> {
|
||||
|
||||
Reference in New Issue
Block a user