Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Joakim Saario
aurweb
Commits
202ffd89
Commit
202ffd89
authored
Jul 28, 2020
by
Frédéric Mangano-Tarumi
Committed by
Lukas Fleischer
Feb 20, 2021
Browse files
Update last login information on SSO login
Signed-off-by:
Lukas Fleischer
<
lfleischer@archlinux.org
>
parent
9290eee1
Changes
1
Show whitespace changes
Inline
Side-by-side
aurweb/routers/sso.py
View file @
202ffd89
...
...
@@ -63,7 +63,13 @@ def open_session(request, conn, user_id):
SessionID
=
sid
,
LastUpdateTS
=
time
.
time
(),
))
# TODO update Users.LastLogin and Users.LastLoginIPAddress
# Update user’s last login information.
conn
.
execute
(
Users
.
update
()
.
where
(
Users
.
c
.
ID
==
user_id
)
.
values
(
LastLogin
=
int
(
time
.
time
()),
LastLoginIPAddress
=
request
.
client
.
host
))
return
sid
...
...
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