diff options
author | skyblue <ssx205@gmail.com> | 2014-03-24 23:08:58 +0800 |
---|---|---|
committer | skyblue <ssx205@gmail.com> | 2014-03-24 23:08:58 +0800 |
commit | 6e972afb1563d1eb585c9900e3c85330726d5b50 (patch) | |
tree | 26f20c8a199f8c9a39347de80bfe8b9e06f37e36 /modules/middleware/auth.go | |
parent | 3070c5513d9529dc62333522c3f92025fffab542 (diff) | |
parent | 8376b0d53cae91af0e180c05b9cb92c3f3f30d58 (diff) |
Merge branch 'master' of github.com:shxsun/gogs
Diffstat (limited to 'modules/middleware/auth.go')
-rw-r--r-- | modules/middleware/auth.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/middleware/auth.go b/modules/middleware/auth.go index 82c3367c..64f75d75 100644 --- a/modules/middleware/auth.go +++ b/modules/middleware/auth.go @@ -21,7 +21,7 @@ type ToggleOptions struct { func Toggle(options *ToggleOptions) martini.Handler { return func(ctx *Context) { - if options.SignOutRequire && ctx.IsSigned { + if options.SignOutRequire && ctx.IsSigned && ctx.Req.RequestURI != "/" { ctx.Redirect("/") return } |