getgrav / grav-plugin-form

Grav Form Plugin
http://getgrav.org
MIT License
53 stars 79 forks source link

Support custom reCAPTCHA providers #515

Open z38 opened 3 years ago

z38 commented 3 years ago

Support hCaptcha and other API-compatible reCAPTCHA providers by adding options to set custom endpoints.

Example:

recaptcha:
  version: 2-checkbox
  theme: light
  site_key: 10000000-ffff-ffff-ffff-000000000001
  secret_key: '0x0000000000000000000000000000000000000000'
  js_url: 'https://hcaptcha.com/1/api.js'
  verify_url: 'https://hcaptcha.com/siteverify'

Fixes #423

NicoHood commented 3 years ago

I like the idea! Can we also add this information as an example to the readme? So people will know about the hcaptcha alternative, without looking through all PRs (which nobody will do)

Edit: and once the pr got merged you can add a PR here as well: https://github.com/hCaptcha/hcaptcha-integrations-list

z38 commented 3 years ago

@NicoHood I thought about showing the integration of hCaptcha on https://learn.getgrav.org/17/forms/forms/fields-available#captcha-field. As for the integration list, will do!