Skip to content

Commit

Permalink
setUser(null)
Browse files Browse the repository at this point in the history
  • Loading branch information
brandonkelly committed Dec 18, 2024
1 parent bb9edb0 commit 3df35b1
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/web/User.php
Original file line number Diff line number Diff line change
Expand Up @@ -593,8 +593,7 @@ private function _clearOtherSessionParams(): void

// Make sure 2FA data doesn't bleed over
$authService = Craft::$app->getAuth();
SessionHelper::remove($authService->userIdParam);
SessionHelper::remove($authService->sessionDurationParam);
$authService->setUser(null);
SessionHelper::remove($authService->passkeyCreationOptionsParam);
}
}

0 comments on commit 3df35b1

Please sign in to comment.