Store Session.validated rather than Session.expires. Already handled in db migration that drops old sessions.

This commit is contained in:
Leo Vasanko
2026-02-18 01:57:01 +00:00
parent 205e7afde2
commit 22b72b2d50
11 changed files with 26 additions and 42 deletions
+1 -1
View File
@@ -277,7 +277,7 @@ def create_test_session(
host=host,
ip=ip,
user_agent=user_agent,
expiry=now + duration,
validated=now,
)
if session.key in ops_db._db.sessions:
raise ValueError("Session already exists")