Account recovery is an alternative route into an account. It deserves the same design attention as sign-in because a weak recovery route can undo otherwise strong authentication. Start with the person who cannot enter, the proof they can still provide, and the actions that proof should authorize. A reset link should not silently become permission to change every security setting or take over an organization.
Consider an editorial workspace whose members normally sign in with an email address and password. A writer has forgotten the password but still controls the mailbox. A second person has lost both mailbox and password. A third suspects that someone else controls an active session. These are different cases. Trying to solve all three with the same email form creates confusing promises and can leave a compromised session active after a successful reset.
Separate the request from the proof
The initial form asks the service to start recovery; it does not establish that the requester owns the account. Its response should not disclose whether an address is registered. Apply this principle to wording, response structure and observable behavior, while keeping the interaction understandable for legitimate users.
The OWASP Forgot Password Cheat Sheet recommends consistent messages and response timing, protections against excessive requests, and recovery tokens that are securely generated, limited in lifetime and invalidated after use. These controls address the recovery channel itself. They do not prove that a mailbox is uncompromised or that every account can safely use email recovery.
A useful confirmation might explain that instructions will arrive if the details match an eligible account. Include a route back to sign-in and explain what to check next without revealing private account state. Avoid displaying a different success screen for unknown addresses. Test the browser response and the underlying request separately, because identical text can hide different status codes or payloads.
Rate limits should prevent abuse without becoming an easy way to lock out an account. Track the source of requests and relevant risk signals rather than assuming that every request naming an address came from its owner. Record abuse events without writing the reset token, full recovery URL or unnecessary personal data into logs.
Define what a token can do
Write the token’s purpose as a narrow authorization statement: this token allows a password change for this account through this recovery flow. It should not authorize changing an email address, exporting private content or promoting a member to administrator. Those actions need their own checks.
Specify generation, storage, expiry, single-use handling and invalidation. Treat the token as a secret in browser history, support screenshots, analytics and logs. A strong random value does little good if a monitoring system captures its complete URL and exposes it to a broad internal audience. Review the whole journey, including redirects and error pages.
Use an approved service origin when constructing recovery links. Do not let an untrusted request header choose where the user is sent. The email should make the destination recognizable and explain that an unrequested reset can be ignored, subject to the service’s actual behavior. Avoid adding a password or other credential to the message.
Concurrent requests deserve a written rule. If two links are issued, decide whether the newest invalidates the older one or whether each remains valid until a successful reset invalidates outstanding recovery attempts. Either approach needs an implementation that prevents a consumed or superseded token from continuing to work. Document the chosen rule rather than leaving it to incidental database behavior.
Make the change atomic enough to trust
The sensitive operation is not rendering the new-password form. It is accepting valid proof, storing the replacement credential and consuming the recovery authorization. Model these effects together so that retries cannot reuse a token after the password has already changed.
Test two simultaneous submissions using the same token. Only the permitted outcome should succeed. Also test a request that is interrupted after the server commits the change but before the browser receives confirmation. The person may retry because the page appears stuck; the response should guide them toward sign-in or a fresh recovery request without implying that the old token remains usable.
Apply the normal password policy and storage mechanism to recovered credentials. Recovery should not use a temporary plaintext password or a weaker hashing path. The password storage guide explains why the credential representation is a separate concern from proving ownership of the recovery channel.
Do not automatically grant a full authenticated session merely because the password was reset. A deliberate return to the standard sign-in journey keeps authentication and recovery behavior easier to reason about. If a product has a justified alternative flow, review its consequences explicitly rather than inheriting it from a convenience library setting.
Decide what happens to existing sessions
A forgotten password does not necessarily mean an account was compromised, but the recovery journey should make the session consequence clear. Define whether all existing sessions are revoked, whether the person can choose, and whether high-risk cases require revocation regardless of preference. The behavior must match the explanation on screen.
Revocation needs to affect server-side acceptance, not just delete a cookie in the current browser. A session on another device or a long-lived refresh credential may otherwise remain usable. Inventory the credentials that survive a password change and test the relevant routes with each one.
The session expiration guide separates explicit logout from timeout. Apply the same precision here: password replacement, recovery-token consumption and session revocation are distinct effects. Record which completed if a downstream service fails, and establish a safe way to retry the missing effect.
Notify the account through an appropriate established channel after a successful password change. The notification should describe the event and a legitimate response route, without including the new secret. A message is useful evidence for the user, but delivery success must not become the sole proof that the account is safe.
Design the route when email is unavailable
A person who cannot access the recovery mailbox needs a different process. Do not instruct support staff to improvise proof from publicly available profile details. A name, company address or recent social post can be known to someone who does not own the account.
Document which account types permit assisted recovery, what evidence is acceptable, who may approve the change and how the action is audited. For some accounts the service may be unable to restore access safely with the evidence available. Explain that limitation through a clear support process rather than quietly weakening the automated route.
Organizational accounts add another boundary. An organization administrator may be allowed to manage membership without being allowed to read a member’s private content or replace a personal identity. Distinguish recovery of organization access from recovery of the individual’s account. Record the scope of any administrative intervention.
An exception process should also address abuse. Support agents need a way to escalate pressure, contradictory evidence or requests to bypass ordinary checks. Keep the decision record restricted and avoid collecting identity documents unless the established process actually needs them and has appropriate handling rules.
Review a complete set of outcomes
Use a small scenario table as the release artifact. Include unknown address, valid request, expired token, already-used token, malformed token, concurrent submissions, delivery failure and a password change followed by a session check on another device. Add the no-mailbox case if assisted recovery is offered.
For each scenario, record the public response, server-side state change, event recorded and next legitimate action. This keeps the review focused on behavior instead of a collection of screenshots. A polished success page cannot demonstrate that an old token was consumed or that a remote session stopped working.
Run tests with synthetic accounts and controlled mailboxes. Verify that secrets do not appear in application logs, browser analytics or error reports. Ask someone outside the implementation to follow the instructions without explanation, including the confusing case where the reset succeeded but the confirmation page did not load.
The release decision should rest on a coherent journey: requests do not reveal private account state, proof has a narrow purpose, credential changes consume that proof, session consequences are explicit, and unsupported recovery cases have an honest route. Keep the scenario table with the implementation so later changes to email delivery, authentication or support tooling trigger a fresh review.