aryehraber / statamic-captcha

Statamic Addon that protects your Statamic forms using a Captcha service.
MIT License
11 stars 8 forks source link

Support passing additional tag parameters to captcha element #32

Closed jacksleight closed 2 years ago

jacksleight commented 2 years ago

This allows you to add additional parameters to the {{ captcha }} tag which are then added as attributes in the HTML tag.

This is needed if you want to specify the data-badge Recaptcha attribute (https://developers.google.com/recaptcha/docs/invisible#render_param), or just want to add some other HTML attributes to the tag.

aryehraber commented 2 years ago

Thanks @jacksleight, this looks great! Will do a proper review and merge soon.

aryehraber commented 2 years ago

Works great and very clean solution 👌 Thanks again!