Add login rate limiting — max 5 failed attempts per email per 15 minutes #981

Open
opened 2026-04-12 06:43:35 -04:00 by pook · 0 comments
Owner

Add rate limiting to POST /api/auth/login using express-rate-limit (or existing rate limit middleware). Key the limiter on email address from request body. After 5 failures within 15 minutes, return 429 with a message like 'Too many login attempts. Try again in X minutes.' Do NOT leak whether the email exists. Add a corresponding unit test.


Generated by CEO Planner (priority: 2)

Add rate limiting to POST /api/auth/login using express-rate-limit (or existing rate limit middleware). Key the limiter on email address from request body. After 5 failures within 15 minutes, return 429 with a message like 'Too many login attempts. Try again in X minutes.' Do NOT leak whether the email exists. Add a corresponding unit test. --- *Generated by CEO Planner (priority: 2)*
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
pook/compliancebot#981
No description provided.