diff options
author | Unknown <joe2010xtmf@163.com> | 2014-06-21 00:51:41 -0400 |
---|---|---|
committer | Unknown <joe2010xtmf@163.com> | 2014-06-21 00:51:41 -0400 |
commit | ad5ec45dd63aa2563d113e6a9ce31180246aa5f2 (patch) | |
tree | b49f76a29faeec1bdf734375f91e5291acf09e53 /modules/middleware | |
parent | 8bfa7ae7453e56191aa6f7de8067d5b6bb5a4a8b (diff) |
Fix #165
Diffstat (limited to 'modules/middleware')
-rw-r--r-- | modules/middleware/context.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/middleware/context.go b/modules/middleware/context.go index 8c837d08..19556118 100644 --- a/modules/middleware/context.go +++ b/modules/middleware/context.go @@ -358,7 +358,7 @@ func InitContext() martini.Handler { }) // Get user from session if logined. - user := auth.SignedInUser(ctx.Session) + user := auth.SignedInUser(ctx.req.Header, ctx.Session) ctx.User = user ctx.IsSigned = user != nil |