Skip to content

GitHub Oauth2 causes 500 #27223

Closed
Closed
@earthjasonlin

Description

@earthjasonlin

Description

I first set up GitHub in /admin/auths, everything should be right, but when i try to connect to it with my account in /user/settings/security, it succeeds. I can now login with my GitHub account, but when i open /user/settings/security again, it gives this error and I can't see my account in Manage Linked Accounts section.
On demo site, I can link account to GitHub and don't get this 500 error on the page, but I still cant see my GitHub account listed in Manage Linked Accounts

2023/09/24 13:05:21 .../context_response.go:86:HTML() [E] Render failed: failed to render template: user/settings/security/security, error: template error: builtin(bindata):user/settings/security/accountlinks:32:20 : executing "user/settings/security/accountlinks" at <$providerData.IconHTML>: wrong number of args for IconHTML: want 1 got 0
----------------------------------------------------------------------
					{{$providerData.IconHTML}}
					               ^
----------------------------------------------------------------------

Gitea Version

1.22.0+dev-17-g6e2888ce2

Can you reproduce the bug on the Gitea demo site?

No

Log Gist

No response

Screenshots

image
image

Git Version

No response

Operating System

No response

How are you running Gitea?

docker-compose with nightly tag

Database

SQLite

Metadata

Metadata

Assignees

No one assigned

    Labels

    issue/confirmedIssue has been reviewed and confirmed to be present or accepted to be implementedtype/bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions