diff options
Diffstat (limited to 'routers/home.go')
-rw-r--r-- | routers/home.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/routers/home.go b/routers/home.go index 770aca034b..4f7abea7a3 100644 --- a/routers/home.go +++ b/routers/home.go @@ -28,6 +28,11 @@ func Home(ctx *middleware.Context) { return } + if setting.OauthService != nil { + ctx.Data["OauthEnabled"] = true + ctx.Data["OauthService"] = setting.OauthService + } + ctx.Data["PageIsHome"] = true ctx.HTML(200, HOME) } |