From b18196613edd1b6eaca723abee62013e7f394b4d Mon Sep 17 00:00:00 2001 From: Daniel Seifert Date: Wed, 30 Nov 2022 22:33:43 +0100 Subject: [PATCH] set current user to use it before session reload --- src/Modules/Application/Component/d3_totp_UserComponent.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Modules/Application/Component/d3_totp_UserComponent.php b/src/Modules/Application/Component/d3_totp_UserComponent.php index 79668e4..2aad5c4 100644 --- a/src/Modules/Application/Component/d3_totp_UserComponent.php +++ b/src/Modules/Application/Component/d3_totp_UserComponent.php @@ -99,7 +99,7 @@ class d3_totp_UserComponent extends d3_totp_UserComponent_parent // relogin, don't extract from this try block $this->d3TotpGetSession()->setVariable(d3totp_conf::SESSION_AUTH, $oUser->getId()); $this->d3TotpGetSession()->setVariable(d3totp_conf::OXID_FRONTEND_AUTH, $oUser->getId()); - $this->setUser(oxNew(User::class)); + $this->setUser($oUser); $this->setLoginStatus(USER_LOGIN_SUCCESS); $this->_afterLogin($oUser);