mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
fix: unset InactivityTS for users on login
Signed-off-by: Kevin Morris <kevr@0cost.org>
This commit is contained in:
parent
b2508e5bf8
commit
4e641d945c
1 changed files with 4 additions and 0 deletions
|
@ -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_
|
||||
|
|
Loading…
Add table
Reference in a new issue