1
0
Fork 0
forked from forgejo/forgejo
This commit is contained in:
Unknwon 2015-11-18 23:52:09 -05:00
parent 915bf1d2e3
commit 9330c943cd
4 changed files with 16 additions and 11 deletions

View file

@ -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)