forked from gitea/gitea
1
0
Fork 0

modules/midlleware: little auth code fix, #777

This commit is contained in:
Unknwon 2015-01-30 20:30:42 -05:00
parent d8394bb2e0
commit fb9dcfa921
1 changed files with 0 additions and 1 deletions

View File

@ -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