mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Merge branch 'v4.4.x'
This commit is contained in:
commit
5c2958023d
@ -137,6 +137,8 @@ func loginUserWithUser(user *m.User, c *middleware.Context) {
|
||||
log.Error(3, "User login with nil user")
|
||||
}
|
||||
|
||||
c.Resp.Header().Del("Set-Cookie")
|
||||
|
||||
days := 86400 * setting.LogInRememberDays
|
||||
if days > 0 {
|
||||
c.SetCookie(setting.CookieUserName, user.Login, days, setting.AppSubUrl+"/")
|
||||
|
Loading…
Reference in New Issue
Block a user