diff options
author | Unknwon <u@gogs.io> | 2015-11-18 23:52:09 -0500 |
---|---|---|
committer | Unknwon <u@gogs.io> | 2015-11-18 23:52:09 -0500 |
commit | 9330c943cd17152c5aca1619f6b87382e3800732 (patch) | |
tree | 3511f29e3ca32dfaf46aa64767c324817acce418 /modules/middleware/context.go | |
parent | 915bf1d2e329ff5d66eac2d475cd00f52f48c896 (diff) | |
download | gitea-9330c943cd17152c5aca1619f6b87382e3800732.tar.gz gitea-9330c943cd17152c5aca1619f6b87382e3800732.zip |
work on #1891
Diffstat (limited to 'modules/middleware/context.go')
-rw-r--r-- | modules/middleware/context.go | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/modules/middleware/context.go b/modules/middleware/context.go index 4839ccf99e..4b217b6349 100644 --- a/modules/middleware/context.go +++ b/modules/middleware/context.go @@ -209,14 +209,6 @@ func Contexter() macaron.Handler { ctx.Data["PageStartTime"] = time.Now() - // Check auto-signin. - if sess.Get("uid") == nil { - if _, err := AutoSignIn(ctx); err != nil { - ctx.Handle(500, "AutoSignIn", err) - return - } - } - // Get user from session if logined. ctx.User, ctx.IsBasicAuth = auth.SignedInUser(ctx.Context, ctx.Session) |