modules/midlleware: little auth code fix, #777

tokarchuk/v1.17
Unknwon 10 years ago
parent d8394bb2e0
commit fb9dcfa921
  1. 1
      modules/middleware/auth.go

@ -54,7 +54,6 @@ func Toggle(options *ToggleOptions) macaron.Handler {
if strings.HasSuffix(ctx.Req.RequestURI, "watch") {
return
}
println(url.QueryEscape(setting.AppSubUrl + ctx.Req.RequestURI))
ctx.SetCookie("redirect_to", url.QueryEscape(setting.AppSubUrl+ctx.Req.RequestURI), 0, setting.AppSubUrl)
ctx.Redirect(setting.AppSubUrl + "/user/login")
return

Loading…
Cancel
Save