Skip to content

Commit 4275c85

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

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,20 +14,20 @@
1414
use Magento\Framework\Exception\State\UserLockedException;
1515

1616
/**
17-
* Class Authentication
17+
* Class Authentication model
1818
* @SuppressWarnings(PHPMD.CouplingBetweenObjects)
1919
*/
2020
class Authentication implements AuthenticationInterface
2121
{
2222
/**
2323
* Configuration path to customer lockout threshold
2424
*/
25-
const LOCKOUT_THRESHOLD_PATH = 'customer/password/lockout_threshold';
25+
public const LOCKOUT_THRESHOLD_PATH = 'customer/password/lockout_threshold';
2626

2727
/**
2828
* Configuration path to customer max login failures number
2929
*/
30-
const MAX_FAILURES_PATH = 'customer/password/lockout_failures';
30+
public const MAX_FAILURES_PATH = 'customer/password/lockout_failures';
3131

3232
/**
3333
* @var CustomerRegistry

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1418,6 +1418,5 @@ public function _resetState(): void
14181418
$this->_origData = null;
14191419
$this->storedData = [];
14201420
$this->_data = [];
1421-
14221421
}
14231422
}

0 commit comments

Comments
 (0)