excelwebzone / EWZRecaptchaBundle

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

This form should not contain extra fields. #38

Open pinodex opened 9 years ago

pinodex commented 9 years ago

screenshot from 2015-02-24 22 22 31

lethak commented 9 years ago

Can you provide your FormType and/or the steps to reproduce ?

pinodex commented 9 years ago

I have it here.

excelwebzone commented 9 years ago

@pinodex this might not be related to this, try to debug your code and identify the "extra" field.. you can var_dump the $form->getErrors() to see (https://github.com/symfony/Form/blob/master/Form.php)

pulzarraider commented 8 years ago

How to reproduce the bug:

    public function getName()
    {
        return '';
    }

recaptcha creates new field g-recaptcha-response that will be sended with the response and tha's the extra field that Symfony form detects.

So this bug occurs if you need to have clean names for your inputs.

raphaelvigee commented 7 years ago

+1 on this issue, any update ?

mikemix commented 6 years ago

I don't believe this bundle is maintained anymore.

01e9 commented 4 years ago

Workaround: Form field name to match hardcoded injected field

$builder->add('g-recaptcha-response', EWZRecaptchaType::class, [
    'constraints' => [ new RecaptchaTrue() ],
]);