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

**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:** 3

<div class="post-metadata">

作者： ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)\
发布日期： [2021 年4 月 6 日 02:56 UTC](https://meta.discourse.org/t/admin-locked-out-of-site-after-deleting-two-factor-keys-from-prefs/184193/3 "2021-04-06T02:56:24Z")

</div>

> [@downey](#):
>
> 请使用管理员用户个人资料偏好设置中“安全”选项卡下的标准 UI 工具，删除您（管理员）账户中的所有双因素认证项目。

我想这就是那个漏洞吧？如果您的站点设置规定所有管理员必须启用双因素认证，那么就不应该允许这样做。

我认为您并没有完全被锁定，现在可以通过控制台进行恢复，但我们不应让您轻易制造出这种极端情况。

---

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