Skip to content

Commit 34721df

Browse files
Noodlesalatjuliusknorr
authored andcommitted
fix: update last_login timestamp for token based-logins
fixes #31075 and maybe #32953 Signed-off-by: Fabian Dreßler <nudelsalat@clouz.de>
1 parent c8e09d1 commit 34721df

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/private/User/Session.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -334,6 +334,7 @@ public function completeLogin(IUser $user, array $loginDetails, $regenerateSessi
334334
if ($isToken) {
335335
$this->setToken($loginDetails['token']->getId());
336336
$this->lockdownManager->setToken($loginDetails['token']);
337+
$user->updateLastLoginTimestamp();
337338
$firstTimeLogin = false;
338339
} else {
339340
$this->setToken(null);

0 commit comments

Comments
 (0)