# 为什么二次验证与关联账户不兼容？

**URL:** https://meta.discourse.org/t/why-is-2fa-incompatible-with-associated-accounts/355387
**Category:** Support
**Tags:** 2fa
**Created:** [2025年三月3日 05:49 UTC](https://meta.discourse.org/t/why-is-2fa-incompatible-with-associated-accounts/355387 "2025-03-03T05:49:50Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![aidanheerdegen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/aidanheerdegen/32/277061_2.png) [@aidanheerdegen](https://meta.discourse.org/u/aidanheerdegen)
#### Post date: [2025年三月3日 05:49 UTC](https://meta.discourse.org/t/why-is-2fa-incompatible-with-associated-accounts/355387/1 "2025-03-03T05:49:50Z")

</div>

似乎 2FA 与关联账户是互斥的：

> [@How do I enable Associated Accounts with 2FA?](https://meta.discourse.org/t/how-do-i-enable-associated-accounts-with-2fa/129490/3):
>
> It’s suppressed when 2FA is enabled.

为什么会这样？

我们希望用户添加外部 OpenID Connect 服务，但目前他们必须让自己的账户 **安全性降低** 才能这样做。

---

<div class="post-metadata">

### Author: ![KhoiUSA](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/khoiusa/32/373010_2.png) [@KhoiUSA](https://meta.discourse.org/u/KhoiUSA)
#### Post date: [2025年三月10日 12:09 UTC](https://meta.discourse.org/t/why-is-2fa-incompatible-with-associated-accounts/355387/3 "2025-03-10T12:09:31Z")

</div>

嗯，原因是您的关联账户 **也可能被盗用** ，据我所知，关联账户会绕过论坛账户的 2FA 限制。这就是为什么 2FA 会抑制关联账户。关联账户可能会被盗用，尤其是没有 2FA 的情况下，这会让不良行为者有机可乘，从而登录您的论坛账户。

不过，有一个站点设置可以修改，以阻止 2FA 账户抑制关联账户登录。它名为 `Enforce second factor on external auth`（强制外部身份验证的第二因素），将该设置切换为未选中状态。 **除非您的外部身份验证强制执行 2FA 并且是安全的，否则不建议禁用此设置。**

 ![The image describes features related to Enforce second factor on external auth, outlining two functionalities: bypassing non-TFA logins when TFA is forced and ensuring twice-factor authentication confirmation when the setting is disabled. (Captioned by AI)](https://global.discourse-cdn.com/meta/original/4X/7/a/a/7aa5d29c3a0c3df0abd3ee27c8d552066a0282d6.png)

如果您只想让用户通过您的 OpenID Connect 服务登录，那么您可以禁用站点设置 `Enable local logins`（启用本地登录）。请注意警告信息： **`WARNING: if disabled, you may be unable to log in if you have not previously configured at least one alternate login method.`** （警告：如果禁用，您可能无法登录，如果您之前没有配置至少一种备用登录方法。）

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

---

<div class="post-metadata">

### Author: ![tobiaseigen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tobiaseigen/32/539204_2.png) [@tobiaseigen](https://meta.discourse.org/u/tobiaseigen)
#### Post date: [2025年九月17日 22:46 UTC](https://meta.discourse.org/t/why-is-2fa-incompatible-with-associated-accounts/355387/4 "2025-09-17T22:46:59Z")

</div>


