Skip to content

Commit

Permalink
fixup! fix(session): Replace remember-me tokens in transaction
Browse files Browse the repository at this point in the history
Signed-off-by: Christoph Wurst <[email protected]>
  • Loading branch information
ChristophWurst committed Sep 27, 2023
1 parent 5fed8e8 commit 455aee3
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions lib/private/User/Session.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 455aee3

Please sign in to comment.