0votes
One-Click Password Reset
PromptLow riskFast, secure password recovery
Add a secure "Forgot password" flow. Stack: {{stack}} After a successful reset, send people to: {{goal}} Requirements: 1. The request form always shows the same message, whether or not the email has an account. 2. Send a single-use token that expires in 60 minutes; store only its hash. Rate-limit requests per email and IP. 3. The reset page checks the token, enforces our password rules, and then invalidates the token and every other active session. 4. Email the user that their password was changed, with a way to report it wasn't them. 5. Redirect as described above, with a confirmation message. List the files you'll change and give me a test plan, including reusing a token, an expired token and two tabs requesting resets.
e.g. 'the dashboard, already logged in' or 'the login page'
Framework, language and versions, e.g. Next.js 16 App Router + TypeScript

Log in to join the discussion.