Recently our client’s customers have been unable to log in to their accounts with an error page “Something went wrong” and message “Request failed reCAPTCHA validation”.
We have temporarily disabled the reCaptcha setting for logins, but this would not be ideal for the long term. Can you please provide any advise regarding this issue?
The Request failed ReCaptcha validation error is returned if a user is considered to be a bot or when the theme isn’t set up properly for ReCaptcha to function properly. It’s difficult for a real person to get a score low enough (under 0.5 as recommended by Google) to be considered a bot, so most often this is an issue caused by the theme.
In regards to the theme, this error is caused by a token not being generated properly for the form. In these cases, the issue is outside of Shopify’s scope, and you or the theme developer can review our public docs on how to resolve this in the code.
If you’re comfortable doing so, you can confirm whether it’s a theme related issue by:
Loading the form in question
Opening Inspect (Chrome Developer tools) and switching to the Network tab
Click into the form and check the lower right corner of your screen in order to see if the reCaptcha logo appears
Fill out and submit the form
Look for contact in the Network tab
Go to the Headers section and scroll down to Form Data
Check to see if the recaptcha-v3-token is present.
If there is no token present, then the error is expected behaviour and it will be up to the theme developer to review the code. If the captcha is enabled through Online Store > Preferences, then the functionality will only be present if the {{ content_for_header }} tag is rendered in the theme. If the tag is missing from the template then it will fail to load.
If you require assistance with these steps, are using a Shopify theme, or would like us to take a closer look, please get in touch with our Support Team. You can open a ticket with us through our Help Center by logging in, selecting your shop, searching a topic, and clicking Continue at the bottom of the page. One of our Support Advisors can look into this for you and escalate if deemed necessary.
I am also experiencing this issue, all of a sudden.
My way of solving the problem is to disable reCaptcha in the shopify admin for login forms and then injecting the google recaptcha script in the theme and control when I want this script to be fired.
@WebEx@AesthetiCare If you’re still requiring further support, please feel welcome to open a ticket with our Support Team through the Help Center and a Support Advisor would be happy to assist you.
You’ll just need to log in, select your shop, search a topic and click the Continue button under “Get support” at the bottom of the page.