Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Arch Linux
aurweb
Commits
4e641d94
Verified
Commit
4e641d94
authored
Feb 18, 2022
by
Kevin Morris
Browse files
fix: unset InactivityTS for users on login
Signed-off-by:
Kevin Morris
<
kevr@0cost.org
>
parent
b2508e5b
Pipeline
#15984
passed with stages
in 3 minutes and 29 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
aurweb/models/user.py
View file @
4e641d94
...
...
@@ -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_
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment