Browse Source

Fix oauth setting list bug (#19681)

tags/v1.16.8
Lunny Xiao 3 years ago committed by GitHub
parent
commit
4386eb751f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      routers/web/admin/auths.go

2
routers/web/admin/auths.go

@ -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)
}

Loading…
Cancel
Save