mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
add setting for how to long we should keep expired tokens
This commit is contained in:
@@ -7,7 +7,7 @@ import (
|
||||
|
||||
func (srv *UserAuthTokenServiceImpl) Run(ctx context.Context) error {
|
||||
ticker := time.NewTicker(time.Hour * 12)
|
||||
deleteSessionAfter := time.Hour * 24 * 7 * 30
|
||||
deleteSessionAfter := time.Hour * 24 * time.Duration(srv.Cfg.LoginDeleteExpiredTokensAfterDays)
|
||||
|
||||
for {
|
||||
select {
|
||||
|
Reference in New Issue
Block a user