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 authored and juliusknorr committed Aug 16, 2024
1 parent c8e09d1 commit 34721df
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 @@ -334,6 +334,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 34721df

Please sign in to comment.