We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d483e88 commit 583c88aCopy full SHA for 583c88a
app/code/Magento/Captcha/Model/Customer/Plugin/AjaxLogin.php
@@ -98,13 +98,14 @@ public function aroundExecute(
98
foreach ($this->formIds as $formId) {
99
if ($formId === $loginFormId) {
100
$captchaModel = $this->helper->getCaptcha($formId);
101
- $captchaModel->logAttempt($username);
102
if ($captchaModel->isRequired($username)) {
103
if (!$captchaModel->isCorrect($captchaString)) {
104
$this->sessionManager->setUsername($username);
+ $captchaModel->logAttempt($username);
105
return $this->returnJsonError(__('Incorrect CAPTCHA'));
106
}
107
108
109
110
111
return $proceed();
0 commit comments