From 3df35b124498718dde2b66be905128a1a1c25478 Mon Sep 17 00:00:00 2001 From: brandonkelly Date: Wed, 18 Dec 2024 14:43:10 -0800 Subject: [PATCH] setUser(null) --- src/web/User.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/web/User.php b/src/web/User.php index db45d7eed2c..0d9aa66df4f 100644 --- a/src/web/User.php +++ b/src/web/User.php @@ -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); } }