Skip to content

next rollout changes #129

@chintakjoshi

Description

@chintakjoshi

Implement a 1-minute timeout before resending otp

  • /auth/password/forgot is easy to abuse for reset-link invalidation and email flooding. request_password_reset() always overwrites the existing reset token and sends a new email for any active user, with no per-user/per-email throttle (lifecycle_service.py). That is notably weaker than verification resend, which has explicit Redis-backed per-subject throttling (lifecycle_service.py). The only guard here is the coarse per-IP middleware bucket (rate_limit.py), (rate_limit.py), so distributed callers can keep invalidating legitimate reset links via (lifecycle.py).
  • Implement email and password validations (eg, password includes 1 caps, 1number)

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions