v0.15.0 password recovery, phone layout, CLI pager, embed policy fixes
This commit is contained in:
1 parent
a999177f0c
commit
e1fa5242e3
48 files changed
+2101
-135
No files matched your search
@@ -41,6 +41,8 @@ type Service struct {
|
||||
|
||||
integrityMode IntegrityMode
|
||||
integrityCursor string // last game ID the integrity sweep verified; cleanup goroutine only
|
||||
|
||||
mail *mailer // password recovery; nil when no transport is configured
|
||||
}
|
||||
|
||||
// New creates a service with optional storage. jwtSecret signs session tokens
|
||||
@@ -193,6 +195,11 @@ func (s *Service) cleanupExpired() {
|
||||
} else if deleted > 0 {
|
||||
slog.Info("cleanup deleted expired sessions", "count", deleted)
|
||||
}
|
||||
if deleted, err := s.store.DeleteExpiredPasswordResets(); err != nil {
|
||||
slog.Error("cleanup failed to delete expired password resets", "error", err)
|
||||
} else if deleted > 0 {
|
||||
slog.Info("cleanup deleted expired password resets", "count", deleted)
|
||||
}
|
||||
}
|
||||
s.cleanupGames(now)
|
||||
s.checkIntegrity(now)
|
||||
|
||||
Reference in new issue
Block a user