UndefinedOffset / silverstripe-nocaptcha

A spam protector and form field using Google's reCAPTCHA v2 or optionally a foundation v3 implementation
BSD 3-Clause "New" or "Revised" License
31 stars 37 forks source link

Configurations available for reCaptcha v3 #77

Closed jinjie closed 2 years ago

jinjie commented 2 years ago

What are some of the options available to v3?

I am trying to change the badge to bottomleft and the default size but doesn't change anything. Flushed

UndefinedOffset\NoCaptcha\Forms\NocaptchaField:
  recaptcha_version: 3
  default_badge: "bottomleft"
  default_size: "compact"
UndefinedOffset commented 2 years ago

The Recaptcha v3 badge has very limited yaml options you can however also style the badge using css.

~That said from what I'm seeing it does sound like the bottomleft (or inline) should work so that is likely a bug.~ As for size, the only option supported is invisible for v3. (See https://developers.google.com/recaptcha/docs/invisible#render_param)

UndefinedOffset commented 2 years ago

Based on some reading it looks and how the v3 system is implemented in this module the default_badge option is not supported. I'd recommend using CSS to move the badge.