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);