Password reset
People locked out need a way back in that an attacker cannot use, and each extra protection also slows down the real person.
The answer
Send a single-use, expiring link to a confirmed address, and do not use security questions. As strong as the weakest rule behind it: moderate.
-
Don’t use security questions to recover accounts.
One company's analysis of its own recovery attempts found about 40% of US English-speaking users could not recall their answers, and that answers hard to guess were hard to remember; read as abstract only. NIST and OWASP both restrict such questions. The study is abstract-only, so the rating is based on the guidance agreeing: 3.
- Applies when
- Choosing a recovery method.
- Based on
- Research
- Principle
- Prevent errors
- Common mistake
- Security questions as the only way back.
- Field dataField data: Secrets, Lies, and Account Recovery: Lessons from the Use of Personal Knowledge Questions at GoogleBonneau, 2015
- StandardStandard: NIST SP 800-63B-4 Digital Identity Guidelines, Authentication and Authenticator Management (Sec. 4.2 Account Recovery; Sec. 3.1.1.2)NIST, 2025
- GuidanceGuidance: Forgot Password Cheat SheetOWASP Cheat Sheet Series
-
Send recovery to an address or number people already confirmed, with a link or code that works once and expires.
NIST SP 800-63B-4 limits issued recovery codes to 10 minutes by text or voice and 24 hours by email. OWASP asks for single-use expiring tokens. NIST is treated as evidence, not a floor.
- Applies when
- Resetting by email or message.
- Based on
- Standard or law
- Principle
- Prevent errors
- Common mistake
- A reset link that never expires; one analysis found a link still working after five months.
- ReviewReview: Web password recovery - a necessary evil?Fatma Al Maqbali, 2018
- StandardStandard: NIST SP 800-63B-4 Digital Identity Guidelines, Authentication and Authenticator Management (Sec. 4.2 Account Recovery; Sec. 3.1.1.2)NIST, 2025
- GuidanceGuidance: Forgot Password Cheat SheetOWASP Cheat Sheet Series
- Guidance: Confirm an email address (pattern)GOV.UK Design System
The other rules
-
Notify the account holder whenever the account is recovered.
NIST requires a notification on every recovery; OWASP advises an email after reset.
- Applies when
- A recovery completes.
- Based on
- Standard or law
- Principle
- Keep people informed
- StandardStandard: NIST SP 800-63B-4 Digital Identity Guidelines, Authentication and Authenticator Management (Sec. 4.2 Account Recovery; Sec. 3.1.1.2)NIST, 2025
- GuidanceGuidance: Forgot Password Cheat SheetOWASP Cheat Sheet Series
-
When a link has expired or been used, say so, say why, and offer a new one.
One government pattern written for confirming an address; applying it to reset is inference.
- Applies when
- An old reset link is opened.
- Based on
- Practitioner research
- Principle
- Help people recover from errors
- Common mistake
- "That link is invalid" with no way to get another.
- GuidanceGuidance: Confirm an email address (pattern)GOV.UK Design System
-
Show where the message was sent, and let people ask for it again.
Same source and limit. Showing the address conflicts with rule 6 where the account may not exist.
- Applies when
- A reset message has been sent.
- Based on
- Practitioner research
- Principle
- Keep people informed
- GuidanceGuidance: Confirm an email address (pattern)GOV.UK Design System
-
Show the same message whether or not an account exists, and say in the email whether there is one.
OWASP says to return an identical response to prevent probing for accounts. No source measures what that costs real users who mistyped their address.
- Applies when
- Someone asks to reset an address that may not have an account.
- Based on
- Practitioner research
- Principle
- Prevent errors
- GuidanceGuidance: Forgot Password Cheat SheetOWASP Cheat Sheet Series
- Guidance: Confirm an email address (pattern)GOV.UK Design System
-
After a reset, ask people to sign in with the new password, and offer to sign out other devices.
OWASP says not to sign in automatically and to offer ending other sessions. One analysis notes sites differ and no study compares.
- Applies when
- A new password has just been set.
- Based on
- Practitioner research
- Principle
- Let practiced people go faster
- ReviewReview: Web password recovery - a necessary evil?Fatma Al Maqbali, 2018
- GuidanceGuidance: Forgot Password Cheat SheetOWASP Cheat Sheet Series
Accessibility
Open questions
- OpenLink or typed code? No comparison found.
- OpenHow long should a link last? NIST caps email codes at 24 hours; nothing tests shorter times against completion.
- OpenRecovery when a second factor is lost: one study regained access to 41 of 78 accounts; no guidance rated here.
- OpenNo usability study of password reset completion was found.
Sources
- ReviewReview: Web password recovery - a necessary evil?Fatma Al Maqbali, 2018
- Field dataField data: Secrets, Lies, and Account Recovery: Lessons from the Use of Personal Knowledge Questions at GoogleBonneau, 2015
- StandardStandard: NIST SP 800-63B-4 Digital Identity Guidelines, Authentication and Authenticator Management (Sec. 4.2 Account Recovery; Sec. 3.1.1.2)NIST, 2025
- GuidanceGuidance: Forgot Password Cheat SheetOWASP Cheat Sheet Series
- Guidance: Confirm an email address (pattern)GOV.UK Design System
Related
- Log inNever block paste or password managers, and slow repeated attempts instead of locking people out.Answer: weak.
- Password creationRequire length, not character mixes, allow password managers, and offer a way to show the password.Answer: moderate.
- One-time codesUse one field that can be pasted into and filled automatically, and do not submit by itself.Answer: moderate.
- EmailUse an email field and check only that the address looks plausible. Suggest a fix for likely typos, but let people continue.Answer: moderate.