use Phalcon\Validation\Validator;
$validator->add('g-recaptcha-response', new Validator([
'message' => 'The captcha is not valid',
'secret' => 'your_site_key'
]));
Afficher le fichier
Open project: phalcon/incubator
Свойство | Type | Description | |
---|---|---|---|
$messages | array | Response error code reference |
Méthode | Description | |
---|---|---|
validate ( Phalcon\Validation $validation, string $attribute ) : boolean |
protected array $messages | ||
Résultat | array |