From 59c4b247474222507da775c8d136fe4ca82c899d Mon Sep 17 00:00:00 2001 From: Noodlesalat Date: Wed, 24 Apr 2024 22:23:35 +0200 Subject: [PATCH] fix: update last_login timestamp for token based-logins MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit fixes #31075 and maybe #32953 Signed-off-by: Fabian Dreßler --- lib/private/User/Session.php | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/private/User/Session.php b/lib/private/User/Session.php index 3f893eb9bae14..29c38b0c6c0c5 100644 --- a/lib/private/User/Session.php +++ b/lib/private/User/Session.php @@ -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);