diff options
| -rw-r--r-- | mastoapi.c | 4 |
1 files changed, 4 insertions, 0 deletions
| @@ -786,6 +786,10 @@ int process_auth_token(snac *snac, const xs_dict *req) | |||
| 786 | 786 | ||
| 787 | if (!xs_is_null(uid) && user_open(snac, uid)) { | 787 | if (!xs_is_null(uid) && user_open(snac, uid)) { |
| 788 | logged_in = 1; | 788 | logged_in = 1; |
| 789 | |||
| 790 | /* this counts as a 'login' */ | ||
| 791 | lastlog_write(snac); | ||
| 792 | |||
| 789 | srv_debug(2, xs_fmt("mastoapi auth: valid token for user %s", uid)); | 793 | srv_debug(2, xs_fmt("mastoapi auth: valid token for user %s", uid)); |
| 790 | } | 794 | } |
| 791 | else | 795 | else |