Password reset flow
Industry-standard, timing-safe, single-use.
Request + confirm endpoints. Responses are constant-shape and constant-time via BackgroundTasks (email dispatch happens after response flush) so email enumeration is impossible. Prior unconsumed tokens invalidated on successful reset. All sessions revoked.
z4j dashboard — Password reset flow
Mockup of the dashboard view for this feature. Live-reloading and themed to match your dashboard.
Ships with
- Constant-shape response: accepted=true for known + unknown emails
- BackgroundTasks so response time is flat (~40ms delta under test)
- Atomic session revoke on successful confirm
- Prior tokens invalidated so a held earlier token cannot second-reset
Related