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

Recaptcha Validation #123

Open
moshetanzer opened this issue Jun 14, 2023 · 1 comment
Open

Recaptcha Validation #123

moshetanzer opened this issue Jun 14, 2023 · 1 comment

Comments

@moshetanzer
Copy link

Is your feature request related to a problem? Please describe.
Yes, most forms have recaptchas, however if we are using your libary it would be nice that we could use it for everything in form including recaptcha.

Describe the solution you'd like
Implement recaptcha validation using this basic js

var response = grecaptcha.getResponse();
if (response.length === 0) {
event.preventDefault(); // Prevent form submission

document.getElementById('recaptchafeedback').style.display = "block";
 /// alert("Please complete the reCAPTCHA challenge.");
  return false; // Prevent form submission
} else {}

Thanks for libary. 
@horprogs
Copy link
Owner

Hey, a good suggestion, thanks. I will look what I can do

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

No branches or pull requests

2 participants