diff options
Diffstat (limited to 'routers/user/auth.go')
-rw-r--r-- | routers/user/auth.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/routers/user/auth.go b/routers/user/auth.go index d0ad4afffd..1596e11bbb 100644 --- a/routers/user/auth.go +++ b/routers/user/auth.go @@ -137,6 +137,7 @@ func SignIn(ctx *context.Context) { ctx.Data["SignInLink"] = setting.AppSubURL + "/user/login" ctx.Data["PageIsSignIn"] = true ctx.Data["PageIsLogin"] = true + ctx.Data["EnableSSPI"] = models.IsSSPIEnabled() ctx.HTML(200, tplSignIn) } @@ -156,6 +157,7 @@ func SignInPost(ctx *context.Context, form auth.SignInForm) { ctx.Data["SignInLink"] = setting.AppSubURL + "/user/login" ctx.Data["PageIsSignIn"] = true ctx.Data["PageIsLogin"] = true + ctx.Data["EnableSSPI"] = models.IsSSPIEnabled() if ctx.HasError() { ctx.HTML(200, tplSignIn) |