Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using recpatcha in China fails/ Need the form extension to call recaptcha.net instead of google.com #129

Open
professordave opened this issue Dec 3, 2021 · 0 comments

Comments

@professordave
Copy link

professordave commented Dec 3, 2021

Here is the instructions from google
https://developers.google.com/recaptcha/docs/faq#can-i-use-recaptcha-globally

When using from China need to use
https://www.recaptcha.net

instead of
https://google.com

Google in general is blocked in China

The javascript we can change to use recaptcha.net but this file in the backend references google.com

ReCaptchaService.cs
src/Feature/FormsExtensions/code/Views/FormBuilder/FieldTemplates

RecaptchaServices.cs
Sitecore-Forms-Extensions-master\src\Feature\FormsExtensions\code\Fields\ReCaptcha
Line 25
var responseMessage = await client.PostAsync("https://www.google.com/recaptcha/api/siteverify", formContent);

At the bottom of the file
</script>

<script src="https://www.google.com/recaptcha/api.js?onload=loadReCaptchas&render=explicit&hl=@Sitecore.Context.Language.CultureInfo.TwoLetterISOLanguageName" async defer></script>

}

Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

Describe the solution you'd like
A clear and concise description of what you want to happen.

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.

Additional context
Add any other context or screenshots about the feature request here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant