DethAriel / ng-recaptcha

Angular component for Google reCAPTCHA
https://dethariel.github.io/ng-recaptcha/
MIT License
472 stars 122 forks source link

No way to make v3 invisible #302

Closed vytautas-pranskunas- closed 10 months ago

vytautas-pranskunas- commented 1 year ago

I am using recaptcha v3 and everything works fine except that i cannot make it invisible.

  1. There is no overload in this.recaptchaV3Service.execute
  2. Also adding div as described in google recapture is not working
    <div class="g-recaptcha" [attr.data-sitekey]="recaptchaKey" data-size="invisible"></div>

if i add another re-capture element as mentioned in your docs i get an error saying "recaptcha is already rendered"

Any advice?

vorant94 commented 1 year ago

i followed recaptcha faq and it worked like a charm... (it is also mentioned in this lib readme in the very end)

tl;dr global style of makes the trick

.grecaptcha-badge { visibility: hidden; }

but according to recaptcha policy we still need to give a credit to them

DethAriel commented 10 months ago

Hi @vytautas-pranskunas- ! Apart from this issue being raised multiple times before, there is a section in the README on this particular topic. Please consult the library documentation and past issues, as well as reCAPTCHA policies.

Closing this as invalid duplicate.