recaptcha_htmlFormWidget
extends WidgetBase
in package
jForms widget that shows reCaptcha.
in the configuration, sets:
[forms]
captcha.recaptcha.validator = \jelix\forms\Captcha\ReCaptchaValidator
captcha.recaptcha.widgettype = recaptcha
[recaptcha]
;see https://developers.google.com/recaptcha/docs/display to know the meaning
; of these configuration parameters.
theme=..
type=..
size=..
tabindex=..
in the localconfig.ini.php, set the site key and the secret (see your google recpatcha account to retrieve them)
[recaptcha]
sitekey= your recaptcha key
secret= your secret value
then indicate to use recaptcha, in the
<captcha validator="recaptcha"/>
[forms]
captcha=recpatcha
Tags
Table of Contents
- outputControl() : mixed
- outputMetaContent() : mixed
- outputJs() : mixed
Methods
outputControl()
public
outputControl() : mixed
Return values
mixed —outputMetaContent()
public
outputMetaContent(mixed $resp) : mixed
Parameters
- $resp : mixed
Return values
mixed —outputJs()
protected
outputJs() : mixed