PHP Class yii\captcha\CaptchaValidator
CaptchaValidator should be used together with
CaptchaAction.
Note that once CAPTCHA validation succeeds, a new CAPTCHA will be generated automatically. As a result,
CAPTCHA validation should not be used in AJAX validation mode because it may fail the validation
even if a user enters the same code as shown in the CAPTCHA image which is actually different from the latest CAPTCHA code.
Afficher le fichier
Open project: yiisoft/yii2
Class Usage Examples
Méthodes publiques
Свойство |
Type |
Description |
|
$captchaAction |
|
the route of the controller action that renders the CAPTCHA image. |
|
$caseSensitive |
|
whether the comparison is case sensitive. Defaults to false. |
|
$skipOnEmpty |
|
whether to skip this validator if the input is empty. |
|
Méthodes publiques
Méthodes protégées
Method Details
clientValidateAttribute()
public méthode
createCaptchaAction()
public méthode
Creates the CAPTCHA action object from the route specified by [[captchaAction]].
validateValue()
protected méthode
Property Details
$captchaAction public_oe property
the route of the controller action that renders the CAPTCHA image.
$caseSensitive public_oe property
whether the comparison is case sensitive. Defaults to false.
$skipOnEmpty public_oe property
whether to skip this validator if the input is empty.