diff options
author | Unknwon <joe2010xtmf@163.com> | 2015-01-30 20:30:42 -0500 |
---|---|---|
committer | Unknwon <joe2010xtmf@163.com> | 2015-01-30 20:30:42 -0500 |
commit | fb9dcfa921d72900936ddc7533861c33d847aa00 (patch) | |
tree | 4ea82706d0a1bf8e8f2135b916ebf458a9bbfa97 /modules | |
parent | d8394bb2e0703db2dc2a57fea843a526663bb279 (diff) | |
download | gitea-fb9dcfa921d72900936ddc7533861c33d847aa00.tar.gz gitea-fb9dcfa921d72900936ddc7533861c33d847aa00.zip |
modules/midlleware: little auth code fix, #777
Diffstat (limited to 'modules')
-rw-r--r-- | modules/middleware/auth.go | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/modules/middleware/auth.go b/modules/middleware/auth.go index 01e2ab5340..b0bcd87f54 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 |