Recaptcha3Token plugin

Send the Google reCAPTCHA v3 token to the back-end when the form is valid

Tip

Use the Recaptcha3 plugin if you want to verify the Google reCAPTCHA v3 token

Usage

To use it, you need to register a site and secret keys at https://www.google.com/recaptcha/admin.

The following piece of code is the starting point to use the Recaptcha3Token plugin:

The sample code above assumes that the FormValidation files are placed inside the vendors directory. You might need to change the path depending on where you place them on the server.

Options

* presents a required parameter

Option Type Description
action * String The page action
hiddenTokenName * String The name of hidden token input generated by Google reCAPTCHA v3
language String The language code defined by reCAPTCHA
siteKey * String The site key provided by Google

Changelog

  • v1.7.0: First release. It means that the Recaptcha3Token plugin requires FormValidation v1.7.0 or newer.