diff options
author | Unknwon <u@gogs.io> | 2015-09-02 02:40:15 -0400 |
---|---|---|
committer | Unknwon <u@gogs.io> | 2015-09-02 02:40:15 -0400 |
commit | 2ac8e11f466f838ff34314c5e4e2785ebe2d036d (patch) | |
tree | 7dbf30a4d51d634f660f6bfa5814f4cfd53593de /modules/middleware/context.go | |
parent | ebf1bd4f518971253e0a7a0e923645c1d584e03e (diff) | |
download | gitea-2ac8e11f466f838ff34314c5e4e2785ebe2d036d.tar.gz gitea-2ac8e11f466f838ff34314c5e4e2785ebe2d036d.zip |
#842 able to use access token replace basic auth
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 9a8bb8865e..141e8ace40 100644 --- a/modules/middleware/context.go +++ b/modules/middleware/context.go @@ -211,7 +211,7 @@ func Contexter() macaron.Handler { } // Get user from session if logined. - ctx.User, ctx.IsBasicAuth = auth.SignedInUser(ctx.Req.Request, ctx.Session) + ctx.User, ctx.IsBasicAuth = auth.SignedInUser(ctx.Context, ctx.Session) if ctx.User != nil { ctx.IsSigned = true |