anhskohbo / no-captcha

No CAPTCHA reCAPTCHA For Laravel.
https://packagist.org/packages/anhskohbo/no-captcha
MIT License
1.77k stars 234 forks source link

How can validate it in front-end? #106

Closed rajshah1609 closed 6 years ago

rajshah1609 commented 6 years ago

Is there a way to validate this in front-end? If the user doesn't click the recaptcha then it should not allow the form to be submitted.

ceejayoz commented 6 years ago

reCAPTCHA creates a hidden textarea element with an ID of g-recaptcha-response you can check the value of for validation purposes. It'll have an empty string if the user hasn't completed the captcha yet.

rajshah1609 commented 6 years ago

Yeah was doing that. I found that solution after creating the issue. Thank you.