File tree Expand file tree Collapse file tree 2 files changed +3
-4
lines changed
ReCaptchaCustomer/Observer
ReCaptchaUser/view/adminhtml/templates Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -101,7 +101,6 @@ public function execute(Observer $observer): void
101
101
$ controller = $ observer ->getControllerAction ();
102
102
$ request = $ controller ->getRequest ();
103
103
$ response = $ controller ->getResponse ();
104
-
105
104
$ validationConfig = $ this ->validationConfigResolver ->get ($ key );
106
105
107
106
try {
Original file line number Diff line number Diff line change @@ -31,18 +31,18 @@ $isInvisible = !empty($config['invisible']);
31
31
let token = '';
32
32
33
33
this.widgetId = grecaptcha.render('admin-recaptcha', {
34
- <?php foreach ($ renderingOptions as $ key => $ value ):?>
34
+ <?php foreach ($ renderingOptions as $ key => $ value ): ?>
35
35
'<?= $ block ->escapeJs ($ key ) ?> ': '<?= $ block ->escapeJs ($ value ) ?> ',
36
36
<?php endforeach ; ?>
37
37
'callback': function (token) { // jscs:ignore jsDoc
38
- <?php if ($ isInvisible ) : ?>
38
+ <?php if ($ isInvisible ): ?>
39
39
this.token = token;
40
40
$('#login-form').submit();
41
41
<?php endif ; ?>
42
42
}.bind(this)
43
43
});
44
44
45
- <?php if ($ isInvisible ) : ?>
45
+ <?php if ($ isInvisible ): ?>
46
46
$('#login-form').submit(function (event) {
47
47
if (!this.token) {
48
48
event.preventDefault(event);
You can’t perform that action at this time.
0 commit comments