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

validateCaptcha Exception #21

Open
bitflame opened this issue Feb 18, 2021 · 0 comments
Open

validateCaptcha Exception #21

bitflame opened this issue Feb 18, 2021 · 0 comments

Comments

@bitflame
Copy link

Hi
Thank you so much for putting this code together. Can you provide a bit more detail on how to deal with the exception? I just need my users to click the radio button. I really don't need them to put in any information. But due to my lack of coding experience, I don't know where to go with that exception. I think you just have it there for folks who want to ask the user some question like: "what is 2 + 5", or what is your email address or something. I guess I can just delete the following:
bool validCaptcha = hbehr.recaptcha.ReCaptcha.ValidateCaptcha(userResponse); if (validCaptcha) { return View(); } else { // Bot Attack, non validated ! return RedirectToAction("YouAreARobot", "Index"); }

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