mirror of
https://github.com/grafana/grafana.git
synced 2024-11-25 10:20:29 -06:00
parent
aa902ef826
commit
0ab0343995
@ -51,7 +51,8 @@ func notAuthorized(c *Context) {
|
||||
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")
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user