From 5ff324fb55f971de0b743eb9beb1b06a3c127404 Mon Sep 17 00:00:00 2001 From: Lunny Xiao Date: Wed, 11 May 2022 20:21:01 +0800 Subject: [PATCH] Fix oauth setting list bug --- 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 74de1ff66bfb8..283bafad2d3d9 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) }