Add Email as a Second Factor

On this page
Starter plan required

This feature requires at least a Starter plan.

Available since 1.26.0

With the email method, FusionAuth emails a one-time code to the user at login.

Enable the Email Method on the Tenant#

FusionAuth doesn't enable the email method by default. To enable the email method:

  1. Navigate to Tenants -> Edit Tenant -> Multi-Factor .

  2. Turn on Enable email MFA.

  3. Select a Template. FusionAuth ships with a default template that you can customize. An Application can override the template on its Multi-Factor tab.

    The tenant Multi-Factor tab with the Email settings highlighted.
    The tenant Multi-Factor tab with the Email settings highlighted.

FusionAuth sends the code with the tenant's email settings. For more information, see Configure Email.

Add Email on the Account Pages#

  1. On the account page, click Manage two-factor .

    The account page with the edit button and the two-factor and passkey links.
    The account page with the edit button and the two-factor and passkey links.
  2. Click Add two-factor .

    The two-factor page with no methods configured.
    The two-factor page with no methods configured.
  3. Select Email.

    The Enable two-factor form for email with an email address entered.
    The Enable two-factor form for email with an email address entered.
  4. Enter an email address.

  5. Click Send a one-time code .

  6. Optionally, enter a name for the method, such as Work email.

  7. Enter the code from the email.

  8. Click Enable .

Recovery Codes#

When the method is the user's first MFA method, FusionAuth shows recovery codesA code used to regain access to an account when the user loses their multi-factor authentication factors.. Save the recovery codes in a safe place.

The recovery codes shown after two-factor authentication is enabled.
The recovery codes shown after two-factor authentication is enabled.

Log In with Email#

After the user enters a password at the next login, FusionAuth asks for a code from the email:

The two-factor challenge for a code that FusionAuth sent, shown after logging in.
The two-factor challenge for a code that FusionAuth sent, shown after logging in.