index
:
gogs.git
Gogs is a painless self-hosted Git service
log msg
author
committer
range
buildscript
main
mygogs
about
summary
refs
log
tree
commit
diff
path:
root
/
modules
/
middleware
/
context.go
diff options
context:
1
2
3
4
5
6
7
8
9
10
15
20
25
30
35
40
space:
include
ignore
mode:
unified
ssdiff
stat only
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 4839ccf9..4b217b63 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)