EWZRecaptchaBundle icon indicating copy to clipboard operation
EWZRecaptchaBundle copied to clipboard

fail to get recaptcha response

Open mathroc opened this issue 7 years ago • 0 comments

when not loading the widget with ajax: true, there is two textarea named "g-recaptcha-response" (one for the javascript widget and one for the noscript fallback) and this confuses Symfony, the browser sends this as an array of two element , the first one containing the response and the second element being empty

when getting $masterRequest->get('g-recaptcha-response') in the validator, we get an empty string and the validation fails

anyone had the same problem ?

maybe the fallback textarea could be named differently ?

mathroc avatar Nov 14 '18 14:11 mathroc