Skip to content

Commit d483e88

Browse files
MC-5602: CAPTCHA doesn't appear in login popup after refreshing page.
1 parent 24912eb commit d483e88

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

app/code/Magento/Captcha/view/frontend/web/js/view/checkout/defaultCaptcha.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,8 @@ define([
129129
},
130130

131131
/**
132+
* Set isRequired on current captcha model.
133+
*
132134
* @param {Boolean} flag
133135
*/
134136
setIsRequired: function (flag) {

app/code/Magento/Customer/Controller/Ajax/Login.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ public function execute()
202202
$response['redirectUrl'] = $this->_redirect->success($redirectRoute);
203203
$this->getAccountRedirect()->clearRedirectCookie();
204204
}
205-
} catch (LocalizedException | InvalidEmailOrPasswordException | EmailNotConfirmedException $e) {
205+
} catch (LocalizedException $e) {
206206
$response = [
207207
'errors' => true,
208208
'message' => $e->getMessage(),

0 commit comments

Comments
 (0)