-
Notifications
You must be signed in to change notification settings - Fork 39
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 will timeout #21
Comments
Exactly this current approach is not correct, the request for the token should be made only when the user click on the submit button. |
I think you can adde some parameters to field() function and create a javascript function that will be fired when the user hit submit and at that point do the request to recaptcha api and then submit the form, I edited your function without break compatibility
With this you can have a code like this
This will work like it's supposed |
Thanks - this updated field function seems to work for me. We were having intermittent issues with validation failing and I suspected a timeout issue. This seems like a good candidate for a PR to submit back into this project? I'm happy to put one together at some point if needed. |
Hey Guys Can you merge this into the package so we can use this? |
Not sure this is maintained, but I've just I've submitted a PR with @fabiomlferreira 's changes: #37 |
If you are on the page for too long, when you submit the form, there will be a timeout and the reCAPTCHA will not validate. Perhaps, adding a built in function that only sets the token when the form is submitted would solve the issue?
The text was updated successfully, but these errors were encountered: