# Trying to enforce Email MFA but SMS is being triggered instead

**URL:** <https://community.auth0.com/t/trying-to-enforce-email-mfa-but-sms-is-being-triggered-instead/190223>\
**Category:** Get Help\
**Tags:** email-factor, mfa\
**Created:** [August 6, 2025, 7:09am UTC](https://community.auth0.com/t/trying-to-enforce-email-mfa-but-sms-is-being-triggered-instead/190223 "2025-08-06T07:09:29Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![s.kimura](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/s.kimura/32/70983_2.png) [@s.kimura](https://community.auth0.com/u/s.kimura)\
**Post date:** [August 6, 2025, 7:09am UTC](https://community.auth0.com/t/trying-to-enforce-email-mfa-but-sms-is-being-triggered-instead/190223/1 "2025-08-06T07:09:29Z")

</div>

### Background

I’m trying to enforce Email MFA only for certain users by using a Post Login Action:

```js
if (event.user.app_metadata?.mfa === true) {
  api.multifactor.enable("email");
  // or api.multifactor.require("email");
}

```

The user’s email is verified (email\_verified: true), and in the dashboard, it shows “MFA registered with Email.”  
The /enrollments API returns an empty array, meaning no SMS is registered.

Yet, when the user logs in:

A 6-digit SMS code is sent instead of an email

Or sometimes, the user is prompted to enter a phone number to enable MFA

This user was created via email & password (database connection) — not Google login.  
However, I (as admin) have previously logged in to the Auth0 dashboard via Google using the same email address (if that matters).

### What I tried

Confirmed email\_verified: true

Reset MFA via both dashboard and Management API (POST /multifactor/actions/reset)

Verified that /enrollments is empty

Ensured no phone number exists in the user profile

Replaced enable(“email”) with require(“email”) to force the method

Tried logging in again — still getting SMS prompt

### What I’m trying to achieve

I want to:

Enforce Email MFA only, without SMS being triggered

Ensure that the user is never prompted to enter a phone number

Understand why SMS is being triggered even when it’s not registered or enabled

Any ideas on what might be causing this or how to enforce Email MFA more reliably?

Thanks in advance!

---

<div class="post-metadata">

**Author:** ![vlad.murarasu](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/vlad.murarasu/32/72793_2.png) [@vlad.murarasu](https://community.auth0.com/u/vlad.murarasu)\
**Post date:** [August 6, 2025, 3:26pm UTC](https://community.auth0.com/t/trying-to-enforce-email-mfa-but-sms-is-being-triggered-instead/190223/3 "2025-08-06T15:26:42Z")

</div>

Hi @s.kimura,

Welcome to the Auth0 Community!

The `enable()` method turns on the ability to use email as an MFA method. This should be enabled from the dashboard at Security \> Multi-factor Auth. If you want to customize which MFA factor challenges the user, you must set `Require Multi-factor Auth` to `Never`, and turn off `MFA Risk Assessors`.

 ![Screenshot 2025-08-06 at 6.21.21 PM](https://global.discourse-cdn.com/auth0/original/3X/0/e/0ef5cf0b774417588c0f06e69a17545f0916e7be.png)

Save, and then, at `Additional Settings`, turn on `Customize MFA factors using Actions`

 ![Screenshot 2025-08-06 at 6.24.36 PM](https://global.discourse-cdn.com/auth0/original/3X/7/2/72b81757f28c681aaf7e28f69bdd94920c6760d9.png)

However, you’ll see that the dashboard doesn’t allow you to turn on email MFA alone.

 ![Screenshot 2025-08-06 at 6.25.20 PM](https://global.discourse-cdn.com/auth0/original/3X/a/d/ad8f4f15b6fbe0f7e83bfd3686f38c41ff342fff.png)

As stated in the [docs](https://auth0.com/docs/secure/multi-factor-authentication/multi-factor-authentication-factors/configure-email-notifications-for-mfa) here, email MFA is not a “true” MFA method; therefore, it can’t be the only one turned on. It needs something like SMS or OTP turned on alongside it, which the method you used might’ve automatically turned on.

The `challengeWith()` function from the ManagementAPI will challenge the user using the email MFA method. You can read more about this from our [docs](https://auth0.com/docs/secure/multi-factor-authentication/customize-mfa/customize-mfa-selection-universal-login#how-it-works).

```javascript
exports.onExecutePostLogin = async (event, api) => {
   api.authentication.challengeWith({type: 'email'});
} 

```

However, to use it, you will still need to enable other methods of MFA, like SMS or OTP.

If you have any other questions, feel free to reach out.

Have a good one,  
Vlad

---

<div class="post-metadata">

**Author:** ![s.kimura](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/s.kimura/32/70983_2.png) [@s.kimura](https://community.auth0.com/u/s.kimura)\
**Post date:** [August 7, 2025, 4:18am UTC](https://community.auth0.com/t/trying-to-enforce-email-mfa-but-sms-is-being-triggered-instead/190223/4 "2025-08-07T04:18:14Z")

</div>

Hi @vlad.murarasu ,

Thanks a lot — it worked perfectly!  
Your detailed explanation and step-by-step guidance helped me solve the issue completely.  
Really appreciate your support.

Have a great day!

— s.kimura

---

<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:** [August 21, 2025, 4:19am UTC](https://community.auth0.com/t/trying-to-enforce-email-mfa-but-sms-is-being-triggered-instead/190223/5 "2025-08-21T04:19:02Z")

</div>

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