karser / KarserRecaptcha3Bundle

Google ReCAPTCHA v3 for Symfony
MIT License
161 stars 22 forks source link

KarserRecaptcha3 VS Recaptcha3 Entreprise #78

Open radiz13 opened 4 days ago

radiz13 commented 4 days ago

Hello, I use recaptcha v3 enterprise, there is only one key (id). So, impossible to make the bundle work, certainly because of the missing second key.

RECAPTCHA3_KEY=RECAPTCHA_ID RECAPTCHA3_SECRET=???

The captcha seems perfectly initialized : <input type="hidden" id="contact__token" name="contact[_token]" value="83e4.I82et384x0HxhHBwQ8p3oVJYMPoZC2LsiGlWpmQId-U.e4_00FJovhOHyygFBY8uxhwdZZhrek-Hww8n6V1GL4hNoKfTO3C2CqvKAw">

But I have the form constraint error: karser_recaptcha3.message. I guess because of the RECAPTCHA3_SECRET ?

karser commented 3 days ago

Hello. I haven't tested this bundle with Recaptcha3 Entreprise but for the Standard version you should use key and secret when creating a new captcha: image

radiz13 commented 3 days ago

Yes, I know, there are 2 keys, but with enterprise there's only a key id (=RECAPTCHA3_KEY), no secret key