# 迁移本地登录至Oauth登录

**URL:** <https://meta.discourse.org/t/migrate-local-logins-to-oauth-logins/287252>\
**Category:** SSO\
**Created:** [2023年十二月2日 04:34 UTC](https://meta.discourse.org/t/migrate-local-logins-to-oauth-logins/287252 "2023-12-02T04:34:35Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![codergautam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codergautam/32/261083_2.png) [@codergautam](https://meta.discourse.org/u/codergautam)\
**Post date:** [2023年十二月2日 04:34 UTC](https://meta.discourse.org/t/migrate-local-logins-to-oauth-logins/287252/1 "2023-12-02T04:34:35Z")

</div>

我使用本地登录已经有一段时间了，但也可以选择使用 Google 或 Discord 登录。如果我想禁用本地登录，只保留外部站点登录，这是否可行？我将如何迁移那些使用非 Google 电子邮件等的用户？

谢谢

---

<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:** [2023年十二月2日 04:54 UTC](https://meta.discourse.org/t/migrate-local-logins-to-oauth-logins/287252/2 "2023-12-02T04:54:44Z")

</div>

只要您的用户在 OAuth 提供商和 Discourse 上拥有相同的电子邮件，他们的帐户将在下次登录时自动关联。您需要向用户提供有关如何在 Discourse 或 OAuth 提供商上更新其电子邮件的说明，或者，如果用户群足够小，可以进行手动合并，则可以合并他们的帐户。

---

<div class="post-metadata">

**Author:** ![codergautam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codergautam/32/261083_2.png) [@codergautam](https://meta.discourse.org/u/codergautam)\
**Post date:** [2023年十二月2日 04:56 UTC](https://meta.discourse.org/t/migrate-local-logins-to-oauth-logins/287252/3 "2023-12-02T04:56:32Z")

</div>

我认为手动合并不是个好主意，因为有很多潜水者和2000多名成员。不过还是谢谢你！

---

<div class="post-metadata">

**Author:** ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)\
**Post date:** [2024年一月1日 04:57 UTC](https://meta.discourse.org/t/migrate-local-logins-to-oauth-logins/287252/4 "2024-01-01T04:57:26Z")

</div>

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