diff options
author | Unknown <joe2010xtmf@163.com> | 2014-03-24 06:50:11 -0400 |
---|---|---|
committer | Unknown <joe2010xtmf@163.com> | 2014-03-24 06:50:11 -0400 |
commit | d44c44987f704e2d4343db8c252281c86adb4a71 (patch) | |
tree | 9907d73d248b1e5626e1f371a743239ce365a032 /modules/middleware | |
parent | 137538e54b3aade46cf2ef947707f4e32ba8a382 (diff) | |
download | gitea-d44c44987f704e2d4343db8c252281c86adb4a71.tar.gz gitea-d44c44987f704e2d4343db8c252281c86adb4a71.zip |
Fix dashboard auto-log bug
Diffstat (limited to 'modules/middleware')
-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 82c3367c48..64f75d75cf 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 } |