excelwebzone / EWZRecaptchaBundle

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

IsTrueValidatorV3 is not using the ReCaptcha service #288

Closed damienalexandre closed 2 years ago

damienalexandre commented 2 years ago

I notice there is a major difference between IsTrueValidatorV3 and IsTrueValidator, only the latest use the bundle declared service ewz_recaptcha.recaptcha.

That mean there is no way to configure the proxy for example:

https://github.com/excelwebzone/EWZRecaptchaBundle/blob/db5a2a88ff6f95807db71432d70a93e5d82205e0/src/Validator/Constraints/IsTrueValidatorV3.php#L94

The class ReCaptcha should not be booted by the validator, the service ewz_recaptcha.recaptcha should be injected.

excelwebzone commented 2 years ago

Ok I will give it another look.

excelwebzone commented 2 years ago

Fixed!