Commit 0ab03439 by bergquist

mark redirect_to cookie as http only

closes #10829
parent aa902ef8
...@@ -51,7 +51,8 @@ func notAuthorized(c *Context) { ...@@ -51,7 +51,8 @@ func notAuthorized(c *Context) {
return return
} }
c.SetCookie("redirect_to", url.QueryEscape(setting.AppSubUrl+c.Req.RequestURI), 0, setting.AppSubUrl+"/") c.SetCookie("redirect_to", url.QueryEscape(setting.AppSubUrl+c.Req.RequestURI), 0, setting.AppSubUrl+"/", nil, false, true)
c.Redirect(setting.AppSubUrl + "/login") c.Redirect(setting.AppSubUrl + "/login")
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment