Description
The Captcha widget is designed to allow captcha to be used dynamically, including situations where it is initialized after the page has loaded (e.g. in popups). The necessary javascript libraries from providers are loaded on the fly. The widget presently supports reCaptcha and KeyCaptcha.
Usage
The widget is initialized as follows:
<div data-ipsCaptcha data-ipsCaptcha-service='recaptcha' data-ipsCaptcha-key='...'> </div>
Options
service
(String; required)
Specifies the captcha service to initialize. Either recaptcha or keycaptcha.
key (recaptcha only)
(String; required)
Specifies the reCaptcha API key to use. Not used for KeyCaptcha.
lang (recaptcha only)
(String; optional; default 'en-US')
Specifies the language to load for reCaptcha. Not used for KeyCaptcha.
theme (recaptcha only)
(String; optional; default 'white')
Specifies the theme to load for reCaptcha. Not used for KeyCaptcha.
Events
The Captcha widget does not emit any events.
Report Guide