Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Debug-log cookie login token regeneration
Signed-off-by: Christoph Wurst <[email protected]>
  • Loading branch information
ChristophWurst committed Sep 7, 2022
commit 11da5bd4ba0a08a352089bd0793bae61314dea6c
4 changes: 4 additions & 0 deletions lib/private/User/Session.php
Original file line number Diff line number Diff line change
Expand Up @@ -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());

Expand Down