# 管理员删除首选项中的双因素密钥后被锁定在站点之外

**URL:** <https://meta.discourse.org/t/admin-locked-out-of-site-after-deleting-two-factor-keys-from-prefs/184193>\
**Category:** Bug\
**Created:** [2021 年3 月 23 日 15:11 UTC](https://meta.discourse.org/t/admin-locked-out-of-site-after-deleting-two-factor-keys-from-prefs/184193 "2021-03-23T15:11:49Z")\
**Posts on this page:** 1\
**Showing post:** 34

<div class="post-metadata">

作者： ![kris.kotlarek](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/kris.kotlarek/32/176919_2.png) [@kris.kotlarek](https://meta.discourse.org/u/kris.kotlarek)\
发布日期： [2022 年12 月 8 日 03:30 UTC](https://meta.discourse.org/t/admin-locked-out-of-site-after-deleting-two-factor-keys-from-prefs/184193/34 "2022-12-08T03:30:47Z")

</div>

该问题的解决方案已合并 - [FEATURE: better UI to manage 2fa by lis2 · Pull Request #19338 · discourse/discourse · GitHub](https://github.com/discourse/discourse/pull/19338)

当删除最后一个身份验证器时，我们会禁用 2FA。系统会要求用户确认，以避免意外禁用 2FA：

 ![confirmation modal](https://global.discourse-cdn.com/meta/original/4X/d/7/b/d7b43b7d2dce7cfe7a03ce3c2c8cff9d634c2939.png)

---

_[View the full topic](https://meta.discourse.org/t/admin-locked-out-of-site-after-deleting-two-factor-keys-from-prefs/184193)._
