diff --git a/vendor/magento/module-re-captcha-customer/Plugin/Customer/DisableCreateAccountButton.php b/vendor/magento/module-re-captcha-customer/Plugin/Customer/DisableCreateAccountButton.php
new file mode 100644
index 0000000..ea6e3eb
--- /dev/null
+++ b/vendor/magento/module-re-captcha-customer/Plugin/Customer/DisableCreateAccountButton.php
@@ -0,0 +1,46 @@
+isCaptchaEnabled = $isCaptchaEnabled;
+ }
+
+ /**
+ * Temporally disable button Create Account while captcha is loading
+ *
+ * @param CreateAccountButton $subject
+ * @return bool
+ * @throws InputException
+ * @SuppressWarnings(PHPMD.UnusedFormalParameter)
+ */
+ public function afterDisabled(CreateAccountButton $subject): bool
+ {
+ $key = 'customer_create';
+ return $this->isCaptchaEnabled->isCaptchaEnabledFor($key);
+ }
+}
diff --git a/vendor/magento/module-re-captcha-customer/Plugin/Customer/DisableLoginButton.php b/vendor/magento/module-re-captcha-customer/Plugin/Customer/DisableLoginButton.php
new file mode 100644
index 0000000..b0713fa
--- /dev/null
+++ b/vendor/magento/module-re-captcha-customer/Plugin/Customer/DisableLoginButton.php
@@ -0,0 +1,47 @@
+isCaptchaEnabled = $isCaptchaEnabled;
+ }
+
+ /**
+ * Temporally disable Login button while captcha is loading
+ *
+ * @param LoginButton $subject
+ * @return bool
+ * @throws InputException
+ * @SuppressWarnings(PHPMD.UnusedFormalParameter)
+ */
+ public function afterDisabled(LoginButton $subject): bool
+ {
+ $key = 'customer_login';
+ return $this->isCaptchaEnabled->isCaptchaEnabledFor($key);
+ }
+}
diff --git a/vendor/magento/module-re-captcha-customer/etc/frontend/di.xml b/vendor/magento/module-re-captcha-customer/etc/frontend/di.xml
index 1d09023..de5be01 100644
--- a/vendor/magento/module-re-captcha-customer/etc/frontend/di.xml
+++ b/vendor/magento/module-re-captcha-customer/etc/frontend/di.xml
@@ -20,5 +20,12 @@
-
+
+
+
+
+
+
diff --git a/vendor/magento/module-re-captcha-frontend-ui/view/frontend/web/js/reCaptcha.js b/vendor/magento/module-re-captcha-frontend-ui/view/frontend/web/js/reCaptcha.js
index ddd627f..4d9a8db 100644
--- a/vendor/magento/module-re-captcha-frontend-ui/view/frontend/web/js/reCaptcha.js
+++ b/vendor/magento/module-re-captcha-frontend-ui/view/frontend/web/js/reCaptcha.js
@@ -161,6 +161,7 @@ define(
} else {
this.tokenField = null;
}
+ if ($('#send2').length > 0) {$('#send2').prop('disabled', false);}
},
/**