mirror of
https://codeberg.org/grunfink/snac2.git
synced 2024-11-22 13:25:04 +00:00
Update lastlog.txt everytime a Bearer token is validated.
This commit is contained in:
parent
9e7ace4f4a
commit
e2ef581e84
1 changed files with 4 additions and 0 deletions
|
@ -786,6 +786,10 @@ int process_auth_token(snac *snac, const xs_dict *req)
|
||||||
|
|
||||||
if (!xs_is_null(uid) && user_open(snac, uid)) {
|
if (!xs_is_null(uid) && user_open(snac, uid)) {
|
||||||
logged_in = 1;
|
logged_in = 1;
|
||||||
|
|
||||||
|
/* this counts as a 'login' */
|
||||||
|
lastlog_write(snac);
|
||||||
|
|
||||||
srv_debug(2, xs_fmt("mastoapi auth: valid token for user %s", uid));
|
srv_debug(2, xs_fmt("mastoapi auth: valid token for user %s", uid));
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in a new issue