|
|
@@ -276,7 +276,6 @@ func SignInPostAPI(ctx *context.Context) { |
|
|
|
|
|
|
|
func SignInPostCommon(ctx *context.Context, form auth.SignInForm) { |
|
|
|
ctx.Data["Title"] = ctx.Tr("sign_in") |
|
|
|
log.Info("here111") |
|
|
|
orderedOAuth2Names, oauth2Providers, err := models.GetActiveOAuth2Providers() |
|
|
|
if err != nil { |
|
|
|
ctx.ServerError("UserSignIn", err) |
|
|
@@ -291,7 +290,6 @@ func SignInPostCommon(ctx *context.Context, form auth.SignInForm) { |
|
|
|
ctx.Data["IsCourse"] = ctx.QueryBool("course") |
|
|
|
ctx.Data["EnableSSPI"] = models.IsSSPIEnabled() |
|
|
|
ctx.Data["EnableCloudBrain"] = true |
|
|
|
log.Info("here222") |
|
|
|
if ctx.HasError() { |
|
|
|
ctx.HTML(200, tplSignIn) |
|
|
|
return |
|
|
|