Skip to content

Commit d12408d

Browse files
glo23503o-dubovyk
authored andcommitted
ACP2E-3246: Customer API - Login Failures Number Not Able To Reset To 0 After Successful Login
1 parent 4275c85 commit d12408d

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

app/code/Magento/Customer/Model/CustomerAuthUpdate.php

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
namespace Magento\Customer\Model;
88

99
use Magento\Customer\Model\ResourceModel\Customer as CustomerResourceModel;
10-
use Magento\Framework\App\ObjectManager;
1110
use Magento\Framework\Exception\NoSuchEntityException;
1211

1312
/**
@@ -33,16 +32,16 @@ class CustomerAuthUpdate
3332
/**
3433
* @param CustomerRegistry $customerRegistry
3534
* @param CustomerResourceModel $customerResourceModel
36-
* @param CustomerFactory|null $customerFactory
35+
* @param CustomerFactory $customerFactory
3736
*/
3837
public function __construct(
3938
CustomerRegistry $customerRegistry,
4039
CustomerResourceModel $customerResourceModel,
41-
CustomerFactory $customerFactory = null
40+
CustomerFactory $customerFactory
4241
) {
4342
$this->customerRegistry = $customerRegistry;
4443
$this->customerResourceModel = $customerResourceModel;
45-
$this->customerFactory = $customerFactory ?: ObjectManager::getInstance()->get(CustomerFactory::class);
44+
$this->customerFactory = $customerFactory;
4645
}
4746

4847
/**

0 commit comments

Comments
 (0)