PHP Trait CakeDC\Users\Controller\Traits\ReCaptchaTrait

Show file Open project: cakedc/users

Public Methods

Method Description
validateReCaptcha ( string $recaptchaResponse, string $clientIp ) : boolean Validates reCaptcha response

Protected Methods

Method Description
_getReCaptchaInstance ( ) : ReCaptcha Create reCaptcha instance if enabled in configuration

Method Details

_getReCaptchaInstance() protected method

Create reCaptcha instance if enabled in configuration
protected _getReCaptchaInstance ( ) : ReCaptcha
return ReCaptcha

validateReCaptcha() public method

Validates reCaptcha response
public validateReCaptcha ( string $recaptchaResponse, string $clientIp ) : boolean
$recaptchaResponse string response
$clientIp string client ip
return boolean