mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
A big refactoring for how sessions are handled, Api calls that authenticate with api key will no longer create a new session
This commit is contained in:
@@ -139,6 +139,6 @@ func loginUserWithUser(user *m.User, c *middleware.Context) {
|
||||
func Logout(c *middleware.Context) {
|
||||
c.SetCookie(setting.CookieUserName, "", -1, setting.AppSubUrl+"/")
|
||||
c.SetCookie(setting.CookieRememberName, "", -1, setting.AppSubUrl+"/")
|
||||
c.Session.Destory(c.Context)
|
||||
c.Session.Destory(c)
|
||||
c.Redirect(setting.AppSubUrl + "/login")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user