You're offline — showing cached data

MC-3578

[SafairBru] Password reset email cooldown bypassed on UTC servers
2026-06-13 06:15:48 SAST
Home Board MC-3578

[SafairBru] Password reset email cooldown bypassed on UTC servers

request_password_reset_for_user stores reset_email_last_sent_at via datetime.now().isoformat() (naive UTC on Docker). can_send_reset_email_now (line 5475) reads it back with _to...
State Done Next Action Closed Owner Luci Runtime Closed Age 27d ago
MC-3578
Ticket is done; runtime is closed. · profile claude_opus_1m_medium · cwd /home/lucienne/workspace · uptime 27d 3h · last activity 27d 1h ago

Description

MC-3578
request_password_reset_for_user stores reset_email_last_sent_at via datetime.now().isoformat() (naive UTC on Docker). can_send_reset_email_now (line 5475) reads it back with _to_sast_aware() which treats naive values as SAST. This adds a phantom 2-hour offset to elapsed time, so the 300-second cooldown (RESET_EMAIL_COOLDOWN_SECONDS) always appears satisfied. The rate limit on password reset emails is effectively disabled on UTC deployments. File: app.py:5509 Complexity: medium Found by: nightly code review (f2ecd69 fix(MC-3260): use _sast_now() in health endpoint timestamp)

Activity

done
Luci is working...
Live
No activity yet
Help