Store Session.validated rather than Session.expires. Already handled in db migration that drops old sessions.
This commit is contained in:
+1
-1
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user