Open cyberdevteam opened 7 years ago
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 seems you are validating same user captcha response twice. What api are you using for validating captcha response ? Can you paste you code snippet which does validation ?
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?