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 ?
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 emptywhen getting
$masterRequest->get('g-recaptcha-response')
in the validator, we get an empty string and the validation failsanyone had the same problem ?
maybe the fallback textarea could be named differently ?