From 4386eb751fa1a1fcaccc620a07cab42a3e85aef7 Mon Sep 17 00:00:00 2001 From: Lunny Xiao Date: Wed, 11 May 2022 21:05:58 +0800 Subject: [PATCH] Fix oauth setting list bug (#19681) --- routers/web/admin/auths.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/routers/web/admin/auths.go b/routers/web/admin/auths.go index 74de1ff66b..283bafad2d 100644 --- a/routers/web/admin/auths.go +++ b/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) }