From ea38e90e6b82aeba62c2ad6e9bf10f69013eadff Mon Sep 17 00:00:00 2001 From: Lunny Xiao Date: Wed, 11 May 2022 21:06:02 +0800 Subject: [PATCH] Fix oauth setting list bug (#19682) --- 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 1d72a88aa1..7ea8a52809 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) }