hCaptcha
in package
implements
CaptchaInterface
hCaptcha
Tags
Table of Contents
Interfaces
- CaptchaInterface
- Cloudrexx captcha interface
Properties
- $secret_key : string
- $securityCheck : bool
- Stores status if CAPTCHA has been successfully validated or not
- $site_key : string
Methods
- __construct() : mixed
- check() : bool
- Check the captcha code
- disable() : mixed
- Disable the captcha check
- getCode() : string
- Get captcha code
- getJSValidationFn() : string
- Get captcha validation code
- verify() : bool
Properties
$secret_key
protected
string
$secret_key
$securityCheck
Stores status if CAPTCHA has been successfully validated or not
protected
bool
$securityCheck
$site_key
protected
string
$site_key
Methods
__construct()
public
__construct() : mixed
check()
Check the captcha code
public
check() : bool
Return values
booldisable()
Disable the captcha check
public
disable() : mixed
getCode()
Get captcha code
public
getCode([int $tabIndex = null ]) : string
Parameters
- $tabIndex : int = null
Return values
stringgetJSValidationFn()
Get captcha validation code
public
getJSValidationFn() : string
Return values
string —Returns JS code
verify()
protected
verify(string $response) : bool
Parameters
- $response : string
-
The hCaptcha response acquired by the user.