# Discord 登录验证无法正确更新用户名

**URL:** https://meta.discourse.org/t/discord-login-auth-doesnt-update-username-correctly/348470
**Category:** Bug
**Tags:** oauth
**Created:** [2025年一月22日 18:37 UTC](https://meta.discourse.org/t/discord-login-auth-doesnt-update-username-correctly/348470 "2025-01-22T18:37:31Z")
**Posts on this page:** 1
**Showing post:** 3

<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: [2025年二月25日 03:17 UTC](https://meta.discourse.org/t/discord-login-auth-doesnt-update-username-correctly/348470/3 "2025-02-25T03:17:38Z")

</div>

您能看看这是否能解决问题吗：[https://github.com/discourse/discourse/pull/31494？它应该会从](https://github.com/discourse/discourse/pull/31494%EF%BC%9F%E5%AE%83%E5%BA%94%E8%AF%A5%E4%BC%9A%E4%BB%8E) Discord 获取可用名称，如果为空则默认为用户名。我们很可能可以使其更智能，仅在必要时设置名称，但目前的方法至少不会改变没有 Discord 显示名称的用户的现有功能。

---

_[View the full topic](https://meta.discourse.org/t/discord-login-auth-doesnt-update-username-correctly/348470)._
