PHP Class Phalcon\Validation\Validator\ReCaptcha

Verifies a value to a reCAPTCHA challenge use Phalcon\Validation\Validator; $validator->add('g-recaptcha-response', new Validator([ 'message' => 'The captcha is not valid', 'secret' => 'your_site_key' ]));
Inheritance: extends Phalcon\Validation\Validator
Afficher le fichier Open project: phalcon/incubator

Protected Properties

Свойство Type Description
$messages array Response error code reference

Méthodes publiques

Méthode Description
validate ( Phalcon\Validation $validation, string $attribute ) : boolean

Method Details

validate() public méthode

public validate ( Phalcon\Validation $validation, string $attribute ) : boolean
$validation Phalcon\Validation
$attribute string
Résultat boolean

Property Details

$messages protected_oe property

Response error code reference
protected array $messages
Résultat array