Fix oauth setting list bug (#19681)
This commit is contained in:
parent
d6aab069ed
commit
4386eb751f
1 changed files with 1 additions and 1 deletions
|
@ -112,7 +112,7 @@ func NewAuthSource(ctx *context.Context) {
|
||||||
ctx.Data["SSPIDefaultLanguage"] = ""
|
ctx.Data["SSPIDefaultLanguage"] = ""
|
||||||
|
|
||||||
// only the first as default
|
// only the first as default
|
||||||
ctx.Data["oauth2_provider"] = oauth2providers[0].Name
|
ctx.Data["oauth2_provider"] = oauth2providers[0].Name()
|
||||||
|
|
||||||
ctx.HTML(http.StatusOK, tplAuthNew)
|
ctx.HTML(http.StatusOK, tplAuthNew)
|
||||||
}
|
}
|
||||||
|
|
Reference in a new issue