diff options
author | Lunny Xiao <xiaolunwen@gmail.com> | 2014-03-24 22:30:50 +0800 |
---|---|---|
committer | Lunny Xiao <xiaolunwen@gmail.com> | 2014-03-24 22:30:50 +0800 |
commit | 0e28dcdac402b3bfc8336fe250e3418939467208 (patch) | |
tree | f16788377cf724e7d6ea28301f2876632a34d3dc /modules/middleware/auth.go | |
parent | 48ea9b12f65e21c8584eb89224bda4ad6c635847 (diff) | |
parent | c9e1eb0a0d9e6bdafa158442158c762b7f188177 (diff) |
Merge branch 'master' of github.com:gogits/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 } |