1
1
Fork 1
mirror of https://github.com/go-gitea/gitea.git synced 2024-06-03 16:16:12 +02:00

Fix oauth setting list bug (#19682)

This commit is contained in:
Lunny Xiao 2022-05-11 21:06:02 +08:00 committed by GitHub
parent f41c2bec4c
commit ea38e90e6b
Signed by: GitHub
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -112,7 +112,7 @@ func NewAuthSource(ctx *context.Context) {
ctx.Data["SSPIDefaultLanguage"] = ""
// only the first as default
ctx.Data["oauth2_provider"] = oauth2providers[0].Name
ctx.Data["oauth2_provider"] = oauth2providers[0].Name()
ctx.HTML(http.StatusOK, tplAuthNew)
}