From 455aee3ea72e32034346f4f09c9f51dce2dfd961 Mon Sep 17 00:00:00 2001 From: Christoph Wurst Date: Wed, 27 Sep 2023 17:31:47 +0200 Subject: [PATCH] fixup! fix(session): Replace remember-me tokens in transaction Signed-off-by: Christoph Wurst --- lib/private/User/Session.php | 7 +++++++ 1 file changed, 7 insertions(+) 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);