sepiariver / recaptchav2

Google's ReCaptcha V2 + V3 for MODX CMS: https://sepiariver.com/modx/recaptchav2-supports-recaptchav3/
https://sepiariver.com/
GNU General Public License v2.0
21 stars 15 forks source link

Support for hCaptcha #58

Open lonn-u opened 2 years ago

lonn-u commented 2 years ago

hCaptcha is a great alternative to Google for captcha. Adding hCaptcha support isn't difficult. I've done it by manually changing the SITE_VERIFY_URL constant to 'https://hcaptcha.com/siteverify' and editing the recaptchav2_html chunk to update the div class and javascript source.

If the SITE_VERIFY_URL, div class, and javascript src could be pulled from the system settings, this would make it easier to deploy.