fix: unset InactivityTS for users on login

Signed-off-by: Kevin Morris <kevr@0cost.org>
This commit is contained in:
Kevin Morris 2022-02-18 13:53:45 -08:00
parent b2508e5bf8
commit 4e641d945c
No known key found for this signature in database
GPG key ID: F7E46DED420788F3

View file

@ -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_