chore: relax user forgot password rate limit

This commit is contained in:
Miodec 2024-07-08 19:47:44 +02:00
parent 016e55036c
commit 65a3f9dacb

View file

@ -478,7 +478,7 @@ export const userRequestVerificationEmail = rateLimit({
});
export const userForgotPasswordEmail = rateLimit({
windowMs: ONE_HOUR_MS / 4,
windowMs: ONE_HOUR_MS / 60,
max: 1 * REQUEST_MULTIPLIER,
keyGenerator: getKeyWithUid,
handler: customHandler,