diff --git a/lib/private/User/Session.php b/lib/private/User/Session.php index 65a213d4bf808..bee2dce8ced5b 100644 --- a/lib/private/User/Session.php +++ b/lib/private/User/Session.php @@ -873,6 +873,10 @@ public function loginWithCookie($uid, $currentToken, $oldSessionId) { } // replace successfully used token with a new one $this->config->deleteUserValue($uid, 'login_token', $currentToken); + $this->logger->debug('Regenerating cookie login token for {uid} after successful verification', [ + 'app' => 'core', + 'uid' => $uid, + ]); $newToken = $this->random->generate(32); $this->config->setUserValue($uid, 'login_token', $newToken, (string)$this->timeFactory->getTime());