Fix dashboard auto-log bug
This commit is contained in:
parent
137538e54b
commit
d44c44987f
2 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue