# GitHub 登录：能创建账户但登录不了

**URL:** https://meta.discourse.org/t/github-logins-can-create-account-but-cannot-login/285881
**Category:** Support
**Created:** [2023年十一月17日 18:16 UTC](https://meta.discourse.org/t/github-logins-can-create-account-but-cannot-login/285881 "2023-11-17T18:16:03Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![spdegabrielle](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/spdegabrielle/32/190784_2.png) [@spdegabrielle](https://meta.discourse.org/u/spdegabrielle)
#### Post date: [2023年十一月17日 18:16 UTC](https://meta.discourse.org/t/github-logins-can-create-account-but-cannot-login/285881/1 "2023-11-17T18:16:03Z")

</div>

前段时间，我按照 [Configure GitHub login for Discourse](https://meta.discourse.org/t/configure-github-login-for-discourse/13745) 的说明配置了 GitHub 登录。

虽然注册可以成功使用，但按下“使用 GitHub 登录”按钮时，按钮会变暗，但不会启动登录过程。

 ![image](https://global.discourse-cdn.com/meta/original/4X/5/0/e/50e33df09ffecafd006848680eeb11cb23ea0b57.png)

一位用户好心提供了[额外信息](https://racket.discourse.group/t/log-in-with-github-doesnt-seem-to-work-on-this-discourse-instance/2510?u=spdegabrielle)：

> 退出登录后，点击网站右上角的“登录”。然后点击出现的模态框中的“使用 GitHub 登录”。似乎什么都没有发生。在控制台中，我看到：

```plaintext
15:09:40.043 Uncaught (in promise) TypeError: this.login.externalLogin is not a function
    externalLoginAction login.js:320
    _run index.ts:665
    _join index.ts:640
    join index.ts:362
    Ember 5
login.js:320:15

```

在日志 [https://racket.discourse.group/logs/](https://racket.discourse.group/logs/) 中没有显示失败事件的迹象。

欢迎提供任何建议。

---

<div class="post-metadata">

### Author: ![Arkshine](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/arkshine/32/298682_2.png) [@Arkshine](https://meta.discourse.org/u/Arkshine)
#### Post date: [2023年十一月17日 18:19 UTC](https://meta.discourse.org/t/github-logins-can-create-account-but-cannot-login/285881/2 "2023-11-17T18:19:49Z")

</div>

伊萨克在几分钟前修复了这个问题。👍

> [@Login via social account is broken for me](https://meta.discourse.org/t/login-via-social-account-is-broken-for-me/285877/4?u=arkshine):
>
> Will be fixed by

> <https://github.com/discourse/discourse/pull/24432>

---

<div class="post-metadata">

### Author: ![isaac](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/isaac/32/235758_2.png) [@isaac](https://meta.discourse.org/u/isaac)
#### Post date: [2023年十一月21日 16:17 UTC](https://meta.discourse.org/t/github-logins-can-create-account-but-cannot-login/285881/3 "2023-11-21T16:17:35Z")

</div>


