# When MFA always is enabled and if user doesn't have any factors enabled other than email. Then email OTP should be prompted before letting user register another MFA

**URL:** <https://community.auth0.com/t/when-mfa-always-is-enabled-and-if-user-doesnt-have-any-factors-enabled-other-than-email-then-email-otp-should-be-prompted-before-letting-user-register-another-mfa/202957>\
**Category:** Get Help\
**Tags:** mfa\
**Created:** [August 31, 2026, 1:33pm UTC](https://community.auth0.com/t/when-mfa-always-is-enabled-and-if-user-doesnt-have-any-factors-enabled-other-than-email-then-email-otp-should-be-prompted-before-letting-user-register-another-mfa/202957 "2026-08-31T13:33:58Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![karuissobusy](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/karuissobusy/32/80340_2.png) [@karuissobusy](https://community.auth0.com/u/karuissobusy)\
**Post date:** [August 31, 2026, 1:33pm UTC](https://community.auth0.com/t/when-mfa-always-is-enabled-and-if-user-doesnt-have-any-factors-enabled-other-than-email-then-email-otp-should-be-prompted-before-letting-user-register-another-mfa/202957/1 "2026-08-31T13:33:59Z")

</div>

Due to some business requriements we turned off user signup and create users in Auth0 using Management API. We found out that the only way to setup password/MFA for users in this scenario is using reset password token.

With this approach, how can we have the initial change password screen to actually display as Set Password?

Once the password is setup, after the next immediate login MFA enrolment option gets prompted. Is there a way to force user to go through Email MFA before giving this MFA enrolment option for better security reasons. Esp for scenarios like a user sets the inital password and logs back after a long time.

If we try to customize the login-actions to achieve this challengeWith email always then we are loosing many out of box benefits, one of them is passkey registration screen provides Remind me later/not on this device options which seems to be not possible with actions.

Also we noticed that when there’re no factors enabled, email factor type is not returned in the enrolledFactors, is this a bug in our tenant or an expected behaviour?

> exports.onExecutePostLogin = async (event, api) =\> {  
> const enrolledFactors = event.user.enrolledFactors || [];  
> const enrolledTypes = new Set(enrolledFactors.map((factor) =\> factor.type));
> 
> console.log(JSON.stringify({  
> userId: event.user.user\_id,  
> emailVerified: event.user.email\_verified,  
> enrolledFactorTypes: enrolledFactors.map((factor) =\> factor.type)  
> }));
> 
> // Logs clearly indicate that even if the user email is verified the email factor is not returned
> 
> {  
> "userId: username  
> “emailVerified”: true,  
> “enrolledFactorTypes”: []  
> }

---

<div class="post-metadata">

**Author:** ![remus.ivan](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/remus.ivan/32/68771_2.png) [@remus.ivan](https://community.auth0.com/u/remus.ivan)\
**Post date:** [August 31, 2026, 5:54pm UTC](https://community.auth0.com/t/when-mfa-always-is-enabled-and-if-user-doesnt-have-any-factors-enabled-other-than-email-then-email-otp-should-be-prompted-before-letting-user-register-another-mfa/202957/3 "2026-08-31T17:54:20Z")

</div>

Hi @karuissobusy,

Welcome back to the Auth0 Community!

I understand that you are requiring some clarification on how to change the “Reset Password” text or use the Email MFA. Below is a detailed breakdown of how to achieve your goals, recommended configurations, and a bit of background on how Auth0 handles email verification.

You can easily modify the “Reset Password” Screen to read “Set Password” directly inside your **Auth0 Dashboard** without needing to write custom code, nor use the Management API:

1. Navigate to **Branding** \> **Universal Login** - **Edit text and translations** in the Auth0 Dashboard.
2. Select the prompt that best fits, such as Login or reset-password
3. You can directly edit the text fields for the page title, description, and the button itself to say **“Set Password”** instead of “Reset Password”.

You can check out the [Customize Universal Login Text Elements](https://auth0.com/docs/customize/login-pages/universal-login/customize-text-elements) documentation.

To force a user to verify an email MFA challenge first (especially when logging back in after a long time) without losing out-of-the-box enrollment benefits like the passkey “Remind me later” options, you should utilize Auth0’s native **Adaptive MFA** or **MFA Step-Up API** instead of custom logic that intercepts and hijacks the entire flow.

**Recommended path:**

1. Go to **Security \> Multi-factor Auth** and set “Require Multi-factor Auth” to **Never**. This prevents Auth0 from running its default, rigid enrollment flow immediately after first login.

2. **Handle the Login Flow with a Post-Login Action:**  
Instead of using `api.multifactor.enable()`, you can selectively call `api.authentication.challengeWith()` or `api.authentication.challengeWithAny()`

You also noticed that even when `email_verified: true`, the array `enrolledFactors` does not return `"email"`. **This is expected behavior.** In Auth0’s architecture, **Email is not treated as an explicitly enrollable primary MFA factor**.

The behavior you observed where **enrolledFactors is empty** even though `email_verified` is `true`is **expected behavior** and is not a bug in your tenant.

In modern identity and access management (IAM), **Email is not considered a “true” or robust secondary MFA factor** (unlike TOTP authenticator apps, SMS, or WebAuthn/Passkeys). Email relies on possession of an inbox, which can be easily compromised if a password is reused, and it doesn’t provide the same cryptographic proof of possession as dedicated authenticators.

Because of this architectural distinction, Auth0 handles email verification differently than true MFA enrollments:

- `enrolledFactors` only lists authenticators that a user has actively, explicitly registered as a dedicated secondary factor (e.g., a specific YubiKey, a registered phone number, or Google Authenticator).

- **Email** is considered an _implicit capability_ tied to the primary user profile. If a user has a verified email address (`email_verified: true`), Auth0 inherently knows they are capable of receiving email challenges. Therefore, users do not technically “enroll” in email MFA the way they do with true secondary factors.

You can simply correct your action’s code to enforce your email challenge by simply checking the `event.user.email_verified` property instead of searching the `enrolledFactors` array:

```auto
exports.onExecutePostLogin = async (event, api) => {  
  const hasVerifiedEmail = event.user.email_verified;
  
  // If the user has a verified email, we can step-up challenge them via Email
  if (hasVerifiedEmail) {
    api.authentication.challengeWith({ type: 'email' });
  }
};

```

You can also check out this additional documentation articles:

- [Configure Email Notifications for MFA](https://auth0.com/docs/secure/multi-factor-authentication/multi-factor-authentication-factors/configure-email-notifications-for-mfa) documentation

- [Email MFA not Visible for Users Enrolled](https://support.auth0.com/center/s/article/Email-MFA-not-visible-for-users) KBA

- [Email MFA Factor Missing from Selection Screen](https://support.auth0.com/center/s/article/email-mfa-factor-missing-from-selection-screen) KBA

- [Possibility to Enroll in Email MFA or OTP](https://support.auth0.com/center/s/article/Enroll-Email-MFA-or-OTP) KBA

I hope this helps and if you have further questions please let me know!  
Best regards,  
Remus

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [September 2, 2026, 5:54pm UTC](https://community.auth0.com/t/when-mfa-always-is-enabled-and-if-user-doesnt-have-any-factors-enabled-other-than-email-then-email-otp-should-be-prompted-before-letting-user-register-another-mfa/202957/4 "2026-09-02T17:54:54Z")

</div>

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.
