excelwebzone / EWZRecaptchaBundle

This bundle provides easy reCAPTCHA form field for Symfony.
MIT License
395 stars 160 forks source link

fail to get recaptcha response #215

Open mathroc opened 6 years ago

mathroc commented 6 years ago

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 ?