Verified Commit 4e641d94 authored by Kevin Morris's avatar Kevin Morris
Browse files

fix: unset InactivityTS for users on login


Signed-off-by: Kevin Morris's avatarKevin Morris <kevr@0cost.org>
parent b2508e5b
Pipeline #15984 passed with stages
in 3 minutes and 29 seconds
......@@ -135,6 +135,10 @@ class User(Base):
if last_updated and last_updated < now_ts:
self.session.SessionID = generate_unique_sid()
self.session.LastUpdateTS = now_ts
# Unset InactivityTS, we've logged in!
self.InactivityTS = 0
break
except IntegrityError as exc_:
exc = exc_
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment