diff options
author | Unknwon <joe2010xtmf@163.com> | 2014-11-12 06:48:50 -0500 |
---|---|---|
committer | Unknwon <joe2010xtmf@163.com> | 2014-11-12 06:48:50 -0500 |
commit | 8c9338a5377c60c84cdee1f5781b3de5933bb3b0 (patch) | |
tree | 57de36743bf8b9c8eaa0ff51172180b834354c4d /modules/middleware/context.go | |
parent | 21b9d5fa1f4014b30619d221f5d665509d373147 (diff) | |
download | gitea-8c9338a5377c60c84cdee1f5781b3de5933bb3b0.tar.gz gitea-8c9338a5377c60c84cdee1f5781b3de5933bb3b0.zip |
add personal access token panel #12
Diffstat (limited to 'modules/middleware/context.go')
-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 58b4f7497b..cbc0b0cf3c 100644 --- a/modules/middleware/context.go +++ b/modules/middleware/context.go @@ -172,7 +172,7 @@ func Contexter() macaron.Handler { ctx.Data["PageStartTime"] = time.Now() // Get user from session if logined. - ctx.User = auth.SignedInUser(ctx.Req.Header, ctx.Session) + ctx.User = auth.SignedInUser(ctx.Req.Request, ctx.Session) if ctx.User != nil { ctx.IsSigned = true |