EspoCRM – Open Source CRM Application
PHP calendarcontactscrmcrm-platformcrm-systemcustomer-portalcustomer-supportcustomizabledocumentsemail-marketingkanbanleadsopen-sourcephpplatformsales-automationsingle-page-applicationsupport
Do not set app user if 2nd step required
Yurii700cc1318f14
diff --git a/application/Espo/Core/Authentication/Authentication.php b/application/Espo/Core/Authentication/Authentication.phpindex 620497c099..3bef797424 100644--- a/application/Espo/Core/Authentication/Authentication.php+++ b/application/Espo/Core/Authentication/Authentication.php@@ -231,7 +231,9 @@ class Authenticationreturn $this->processFail(Result::fail($anotherUserFailReason), $data, $request);}- $this->applicationUser->setUser($loggedUser);+ if ($result->isSuccess()) {+ $this->applicationUser->setUser($loggedUser);+ }if (!$result->bypassSecondStep() &&