Skip to content

Commit

Permalink
fix: update last_login timestamp for token based-logins
Browse files Browse the repository at this point in the history
fixes #31075 and maybe #32953

Signed-off-by: Fabian Dreßler <nudelsalat@clouz.de>
  • Loading branch information
Noodlesalat committed Apr 24, 2024
1 parent 153705d commit 59c4b24
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/private/User/Session.php
Original file line number Diff line number Diff line change
Expand Up @@ -393,6 +393,7 @@ public function completeLogin(IUser $user, array $loginDetails, $regenerateSessi
if ($isToken) {
$this->setToken($loginDetails['token']->getId());
$this->lockdownManager->setToken($loginDetails['token']);
$user->updateLastLoginTimestamp();
$firstTimeLogin = false;
} else {
$this->setToken(null);
Expand Down

0 comments on commit 59c4b24

Please sign in to comment.