From fb9dcfa921d72900936ddc7533861c33d847aa00 Mon Sep 17 00:00:00 2001 From: Unknwon Date: Fri, 30 Jan 2015 20:30:42 -0500 Subject: [PATCH] modules/midlleware: little auth code fix, #777 --- modules/middleware/auth.go | 1 - 1 file changed, 1 deletion(-) diff --git a/modules/middleware/auth.go b/modules/middleware/auth.go index 01e2ab53..b0bcd87f 100644 --- a/modules/middleware/auth.go +++ b/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