-
Notifications
You must be signed in to change notification settings - Fork 197
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
Validation fails. Error code: timeout-or-duplicate #140
Comments
Having this same issue (validator running twice), but with my own Recaptcha validation code. Could this be an obscure Laravel issue? |
@TWilson023 Can you explain issue in detail. |
it could be nice to cache the first response, so in the code if the same validation is called few times it will return the first validation result
caching for the first response
This might require resetting your captcha, to prevent duplicates. Try calling the grecaptcha.reset(); reference: https://developers.google.com/recaptcha/docs/display#render_param |
Everything was working fine until last week when every validation fails with the error code "timeout-or-duplicate". After adding some debug lines this is what I get:
It seems that in every validation two calls are made, so Google response is true for the first and false for the second since is considered duplicate.
I'm using a request validation object and my rules are set like this:
Any ideas how to prevent duplicate calls to google recaptcha API?
The text was updated successfully, but these errors were encountered: