Build a secure password reset
Prompt that plans password resets with short-lived links, neutral answers and ended sessions. Paste it into an AI tool of your choice, which then plans the reset flow.
- Topic
- Apps & prototypes
- Type
- Prompt
- Level
- Intermediate
- Time
- about 10 min
Results depend on the tool, the model and what you enter.
Result preview
Example: written by our editors, not real AI output.
Flow 1. Request with email → always the same answer: "If an account exists, an email is on its way." 2. Token: 32 random bytes, stored only as a hash, valid 30 minutes, single use 3. Limit: 5 requests per hour per address 4. New password set → all other sessions ended, notice email to the account Test cases: expired link → error page with new link; link used twice → rejected; token altered → rejected
Fill in
What you type stays in this browser window. We store and send nothing.
- customer account in an online shop
- web app for teams
- mobile app
- members' area of an association
- internal admin tool
- Python with Django
- Node.js with Express
- PHP with Laravel
- Ruby on Rails
- Java with Spring
- two-factor sign-in is active
- accounts are created by admins
- sign-in also via company account
- many shared email addresses
- nothing special
Your prompt
You have edited the prompt. Changes in the fields above no longer overwrite it.
This is an instruction for an AI, not the result itself.
Where this prompt works
These AI tools are a good fit for this prompt:
How to use it
- Fill in the fields or tap a suggestion. Leave out names, addresses and other personal data.
- Copy the finished prompt into an AI tool of your choice.
- Request a link twice in quick succession and use the first one. It must no longer work, and the second must work exactly once.
Why does this work?
Password resets open many gaps: links that never expire, answers that reveal who is a customer, and sessions that keep running after the change. Fixed rules for tokens, answers and sessions close them.
Tips
- Do not enter real tokens, password hashes or user data into the AI tool; sample values are enough.