Skip to main content

Account recovery and password reset

Account recovery allows users to regain access to their accounts when they forget their passwords. This guide shows how to configure account recovery in your Ory project.

Set up account recovery

Enable and configure account recovery

  1. Log in to your Ory Console
  2. Select your workspace and project
  3. Navigate to AuthenticationAccount recovery
  4. Toggle "Enable account recovery" to on
  5. Configure recovery methods:
    • Link method: Sends a recovery link via email
    • Code method: Sends a one-time code via email
  6. Set the lifespan for recovery links/codes (default: 1h)
  7. Click Save
https://console.ory.sh/projects/<id>/settings

Account Recovery Settings

Configure multi-factor for recovery

By default, account recovery gives users a privileged session without requiring a second authentication factor. You can change this behavior:

  1. In the Account recovery section
  2. Toggle "Require multi-factor for account recovery" to on
  3. Click Save
https://console.ory.sh/projects/<id>/settings

Multi-factor for Recovery

Note: This affects all users, not just those that recover their accounts. If you enable this setting, all users must provide their second authentication factor to adjust profile settings.

What users will see

When a user initiates account recovery:

https://console.ory.sh/projects/<id>/settings

Account Recovery Page

Flow

  1. They enter their email address on the recovery page
  2. They receive either:
    • A recovery link via email (if using the link method)
    • A one-time code via email (if using the code method)
  3. After clicking the link or entering the code, they're prompted to set a new password
  4. If MFA is required, they'll also need to complete the second factor challenge
  5. Once completed, they regain access to their account with a new password