1
1
mirror of https://github.com/go-gitea/gitea synced 2025-07-22 18:28:37 +00:00
This commit is contained in:
Unknown
2014-05-31 17:15:04 -04:00
parent ddb7f55035
commit 2657f88d9a
4 changed files with 7 additions and 8 deletions

View File

@@ -26,6 +26,11 @@ func SignIn(ctx *middleware.Context) {
return
}
if setting.OauthService != nil {
ctx.Data["OauthEnabled"] = true
ctx.Data["OauthService"] = setting.OauthService
}
// Check auto-login.
userName := ctx.GetCookie(setting.CookieUserName)
if len(userName) == 0 {
@@ -33,11 +38,6 @@ func SignIn(ctx *middleware.Context) {
return
}
if setting.OauthService != nil {
ctx.Data["OauthEnabled"] = true
ctx.Data["OauthService"] = setting.OauthService
}
isSucceed := false
defer func() {
if !isSucceed {