# New admins can't enroll 2FA when enforce second factor is set to Staff

**URL:** https://meta.discourse.org/t/new-admins-cant-enroll-2fa-when-enforce-second-factor-is-set-to-staff/286042
**Category:** Bug
**Created:** [November 20, 2023, 7:22am UTC](https://meta.discourse.org/t/new-admins-cant-enroll-2fa-when-enforce-second-factor-is-set-to-staff/286042 "2023-11-20T07:22:03Z")
**Posts on this page:** 10
**Page:** 1

<div class="post-metadata">

### Author: ![KC1508](https://avatars.discourse-cdn.com/v4/letter/k/5f9b8f/32.png) [@KC1508](https://meta.discourse.org/u/KC1508)
#### Post date: [November 12, 2023, 2:48am UTC](https://meta.discourse.org/t/new-admins-cant-enroll-2fa-when-enforce-second-factor-is-set-to-staff/286042/1 "2023-11-12T02:48:51Z")

</div>

My community has recently enabled 2FA for Staff Members only with no issues until today. One of the admins notified me when on /u/User/preferences/second-factor would come up, but when clicking “Add Authentication” would ‘pop’ up the panel, but nearly instantly (less than a second later) go away and the page reloades.

 ![image](https://global.discourse-cdn.com/meta/original/4X/4/3/6/4367860ef13985d358b9c57a999fc1043ebda1d6.png)

I’ve impersonated a few admins who haven’t enabled 2FA yet and this issue is persistent across multiple browsers and accounts - no adblockers, etc. Just updated today.

 ![image](https://global.discourse-cdn.com/meta/original/4X/2/d/0/2d036b356d81097595cbfdad323ca780271394c9.png)

---

<div class="post-metadata">

### Author: ![KC1508](https://avatars.discourse-cdn.com/v4/letter/k/5f9b8f/32.png) [@KC1508](https://meta.discourse.org/u/KC1508)
#### Post date: [November 12, 2023, 11:45pm UTC](https://meta.discourse.org/t/new-admins-cant-enroll-2fa-when-enforce-second-factor-is-set-to-staff/286042/2 "2023-11-12T23:45:19Z")

</div>

Issue is still occurring on latest version. Is there any fix?

---

<div class="post-metadata">

### Author: ![itsbhanusharma](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/itsbhanusharma/32/180717_2.png) [@itsbhanusharma](https://meta.discourse.org/u/itsbhanusharma)
#### Post date: [November 20, 2023, 7:22am UTC](https://meta.discourse.org/t/new-admins-cant-enroll-2fa-when-enforce-second-factor-is-set-to-staff/286042/3 "2023-11-20T07:22:04Z")

</div>

The page just randomly reloads with the following errors in browser console:

> Uncaught TypeError: t is undefined  
> hasSecondFactors second-factor.js:47  
> u handle-descriptor.js:55  
> get Ember  
> untrack validator.js:670  
> Ember 3  
> second-factor.js:47:11

Some errors might have lost because the page immediately reloads when I click the Add Authenticator button.

---

<div class="post-metadata">

### Author: ![JammyDodger](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jammydodger/32/254611_2.png) [@JammyDodger](https://meta.discourse.org/u/JammyDodger)
#### Post date: [November 20, 2023, 7:26am UTC](https://meta.discourse.org/t/new-admins-cant-enroll-2fa-when-enforce-second-factor-is-set-to-staff/286042/4 "2023-11-20T07:26:10Z")

</div>

There’s another report of issues with the reload here:

[https://meta.discourse.org/t/staff-2fa-open-close-issue/285225](https://meta.discourse.org/t/staff-2fa-open-close-issue/285225)

---

<div class="post-metadata">

### Author: ![JammyDodger](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jammydodger/32/254611_2.png) [@JammyDodger](https://meta.discourse.org/u/JammyDodger)
#### Post date: [November 20, 2023, 7:29am UTC](https://meta.discourse.org/t/new-admins-cant-enroll-2fa-when-enforce-second-factor-is-set-to-staff/286042/5 "2023-11-20T07:29:58Z")

</div>

Sorry for the delay, I was meaning to try and repro this but it slipped away from me. :frowning: There’s been a second report now so I’ll combine the two topics together. :pray:

---

<div class="post-metadata">

### Author: ![KC1508](https://avatars.discourse-cdn.com/v4/letter/k/5f9b8f/32.png) [@KC1508](https://meta.discourse.org/u/KC1508)
#### Post date: [November 20, 2023, 8:50am UTC](https://meta.discourse.org/t/new-admins-cant-enroll-2fa-when-enforce-second-factor-is-set-to-staff/286042/6 "2023-11-20T08:50:01Z")

</div>

I’ll be updating our forums sometime this week. Should update you then if it was fixed.

---

<div class="post-metadata">

### Author: ![itsbhanusharma](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/itsbhanusharma/32/180717_2.png) [@itsbhanusharma](https://meta.discourse.org/u/itsbhanusharma)
#### Post date: [November 20, 2023, 9:04am UTC](https://meta.discourse.org/t/new-admins-cant-enroll-2fa-when-enforce-second-factor-is-set-to-staff/286042/7 "2023-11-20T09:04:07Z")

</div>

This is not fixed (yet!)

---

<div class="post-metadata">

### Author: ![pmusaraj](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pmusaraj/32/119489_2.png) [@pmusaraj](https://meta.discourse.org/u/pmusaraj)
#### Post date: [November 20, 2023, 3:07pm UTC](https://meta.discourse.org/t/new-admins-cant-enroll-2fa-when-enforce-second-factor-is-set-to-staff/286042/12 "2023-11-20T15:07:31Z")

</div>

Thanks for the reports, folks, this issue should have been fixed on November 16th, via this commit: [FIX: Regression when enforced 2FA is enabled by pmusaraj · Pull Request #24415 · discourse/discourse · GitHub](https://github.com/discourse/discourse/pull/24415) – I did a quick check locally just now and can’t reproduce it. Can you confirm again, please?

If you’re running a self-hosted instance, you might have to rebuild. If your site is hosted with us and you can still repro the issue, please let us know the URL so we can look into it further.

---

<div class="post-metadata">

### Author: ![KC1508](https://avatars.discourse-cdn.com/v4/letter/k/5f9b8f/32.png) [@KC1508](https://meta.discourse.org/u/KC1508)
#### Post date: [November 20, 2023, 10:02pm UTC](https://meta.discourse.org/t/new-admins-cant-enroll-2fa-when-enforce-second-factor-is-set-to-staff/286042/13 "2023-11-20T22:02:50Z")

</div>

v3.2.0.beta3 +147 seems to be working with Staff 2FA on my forum. Thank you for the hard work.

---

<div class="post-metadata">

### Author: ![JammyDodger](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jammydodger/32/254611_2.png) [@JammyDodger](https://meta.discourse.org/u/JammyDodger)
#### Post date: [November 25, 2023, 8:00am UTC](https://meta.discourse.org/t/new-admins-cant-enroll-2fa-when-enforce-second-factor-is-set-to-staff/286042/14 "2023-11-25T08:00:15Z")

</div>

This topic was automatically closed after 4 days. New replies are no longer allowed.
