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.
2 parents 57aeec6 + df8f4ba commit ce6795cCopy full SHA for ce6795c
ReCaptchaUser/view/adminhtml/templates/recaptcha.phtml
@@ -45,12 +45,16 @@ $isInvisible = !empty($config['invisible']);
45
<?php if ($isInvisible): ?>
46
$('#login-form').submit(function (event) {
47
if (!this.token) {
48
- event.preventDefault(event);
49
- event.stopImmediatePropagation();
50
- grecaptcha.execute(this.widgetId);
+ grecaptcha.execute(this.widgetId).then(
+ function() {
+ event.preventDefault(event);
51
+ event.stopImmediatePropagation();
52
+ }, function(reason) {
53
+ });
54
}
55
}.bind(this));
56
<?php endif; ?>
57
+
58
}.bind(this);
59
60
scriptTag.parentNode.insertBefore(element, scriptTag);
0 commit comments