diff --git a/lib/private/User/Session.php b/lib/private/User/Session.php index c4b3a874aa290..12b7a240aec21 100644 --- a/lib/private/User/Session.php +++ b/lib/private/User/Session.php @@ -912,6 +912,13 @@ public function loginWithCookie($uid, $currentToken, $oldSessionId) { } $newToken = $this->random->generate(32); $this->config->setUserValue($uid, 'login_token', $newToken, (string)$this->timeFactory->getTime()); + $this->logger->debug('Remember-me token {token} for {uid} replaced by {newToken}', [ + 'app' => 'core', + 'token' => $currentToken, + 'newToken' => $newToken, + 'uid' => $uid, + 'user' => $uid, + ]); return $newToken; }, $this->connection);