change default rotate_token_minutes to 10 minutes

This commit is contained in:
Marcus Efraimsson
2019-01-25 13:30:26 +01:00
parent 42fa41e78d
commit e4924795a2
3 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -556,7 +556,7 @@ func (cfg *Cfg) Load(args *CommandLineArgs) error {
cfg.LoginCookieName = login.Key("cookie_name").MustString("grafana_session")
cfg.LoginCookieMaxDays = login.Key("login_remember_days").MustInt(7)
cfg.LoginDeleteExpiredTokensAfterDays = login.Key("delete_expired_token_after_days").MustInt(30)
cfg.LoginCookieRotation = login.Key("rotate_token_minutes").MustInt(30)
cfg.LoginCookieRotation = login.Key("rotate_token_minutes").MustInt(10)
if cfg.LoginCookieRotation < 2 {
cfg.LoginCookieRotation = 2
}