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

Change the formdata builder in RTecaptchaValidator.cs #256

Open
leofoe opened this issue Sep 9, 2022 · 1 comment
Open

Change the formdata builder in RTecaptchaValidator.cs #256

leofoe opened this issue Sep 9, 2022 · 1 comment

Comments

@leofoe
Copy link

leofoe commented Sep 9, 2022

The formdata for the ReCaptCha is incorrect. Change
var formdata = String.Format(HttpUtility.UrlEncode(this.PrivateKey), HttpUtility.UrlEncode(this.Response), HttpUtility.UrlEncode(this.RemoteIP));
to
var formdata = string.Format("secret=" + this.PrivateKey + "&response=" + this.Response + "&remoteip=" + this.RemoteIP);

@leofoe
Copy link
Author

leofoe commented Sep 10, 2022

While this works with the Contactform, it does not work for Comments.

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