|
|
@@ -81,6 +81,7 @@ func Toggle(options *ToggleOptions) macaron.Handler { |
|
|
|
|
|
|
|
|
// Redirect to dashboard if user tries to visit any non-login page. |
|
|
// Redirect to dashboard if user tries to visit any non-login page. |
|
|
if options.SignOutRequired && ctx.IsSigned && ctx.Req.URL.RequestURI() != "/" { |
|
|
if options.SignOutRequired && ctx.IsSigned && ctx.Req.URL.RequestURI() != "/" { |
|
|
|
|
|
log.Info("YYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY") |
|
|
ctx.Redirect(setting.AppSubURL + "/") |
|
|
ctx.Redirect(setting.AppSubURL + "/") |
|
|
return |
|
|
return |
|
|
} |
|
|
} |
|
|
|