From 4e641d945c3f63dac69a2fff3a0c70b8afa8e60d Mon Sep 17 00:00:00 2001 From: Kevin Morris Date: Fri, 18 Feb 2022 13:53:45 -0800 Subject: [PATCH] fix: unset InactivityTS for users on login Signed-off-by: Kevin Morris --- aurweb/models/user.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/aurweb/models/user.py b/aurweb/models/user.py index 871ff209..c375fcbc 100644 --- a/aurweb/models/user.py +++ b/aurweb/models/user.py @@ -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_