Magento2 – Amasty Google Invisible Captcha

amastycaptchamagento2

I have an issue with the default form Customer Create Account from Amasty google invisible captcha V3 which is never submitting and I have no idea why.

captcha config

In front page, the captcha is appearing.

captcha front

But sadly, once I submit the form; the form action is never called, I see the amasty_invisible_token html input field being updated; but that's basically all what the submit is doing.

PS1 : The captcha seems to work fine on the other default forms

PS2 : If I delete Customer Create Account from the config, I don't have amasty captcha on the form and the form is submitted properly.

When I try to submit the form with amasty, this is what seems to be called

https://www.google.com/recaptcha/api2/reload?k=6LcdvG4b0XgXyr5-O

The response looks like this :

response

Best Answer

After long research we figure it out that the issue was coming from the following modules allowing to connect to the user account from the backoffice.

Disabling these modules fixed our captcha issue.

bin/magento module:disable Magento_LoginAsCustomer Magento_LoginAsCustomerAdminUi Magento_LoginAsCustomerApi Magento_LoginAsCustomerAssistance Magento_LoginAsCustomerFrontendUi Magento_LoginAsCustomerGraphQl Magento_LoginAsCustomerLog Magento_LoginAsCustomerPageCache Magento_LoginAsCustomerQuote Magento_LoginAsCustomerSales