Skip to content

Commit 0debaf5

Browse files
committed
security-package/issues/21: reCaptcha is added multiple times to head
1 parent 2650ddc commit 0debaf5

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

ReCaptchaCustomer/Model/AjaxLogin/ErrorProcessor.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,9 @@
1313
use Magento\Framework\Serialize\SerializerInterface;
1414

1515
/**
16-
* ErrorProcessor
16+
* Process error during ajax login
17+
*
18+
* Set "no dispatch" flag and error message to Response
1719
*/
1820
class ErrorProcessor
1921
{
@@ -40,6 +42,8 @@ public function __construct(
4042
}
4143

4244
/**
45+
* Set "no dispatch" flag and error message to Response
46+
*
4347
* @param ResponseInterface $response
4448
* @param string $message
4549
* @return void

ReCaptchaUser/view/adminhtml/templates/recaptcha.phtml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ $isInvisible = !empty($config['invisible']);
3131
let token = '';
3232

3333
this.widgetId = grecaptcha.render('admin-recaptcha', {
34-
<?php foreach($renderingOptions as $key => $value): ?>
34+
<?php foreach ($renderingOptions as $key => $value): ?>
3535
'<?= $block->escapeJs($key) ?>': '<?= $block->escapeJs($value) ?>',
3636
<?php endforeach; ?>
3737
'callback': function (token) { // jscs:ignore jsDoc

0 commit comments

Comments
 (0)