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

Custom Validator Option #21

Closed matdave closed 6 years ago

matdave commented 6 years ago

This adds the ability to set it as a customValidator instead of a hook if wanted. The hook method fires after everything else is validated, the customValidator method fires during the validation process of the rest of the form fields. To use set

&customValidators=`recaptchav2`
&validate=`g-recaptcha-response:recaptchav2`

This is an optional alteration that helps people identify if their reCaptcha is failing for them sooner in the completion process.