Answer the question
In order to leave comments, you need to log in
Why can captcha be called in Yii1 in a scenario where it is not mentioned?
Good afternoon,
I have a mathematical captcha for user registration, as in the ryut recipes of Alexander Makarov, the same in this link
www.dbhelp.ru/mathematics-captcha/page
In the rules of the model:
['verifyCode', 'captcha', 'allowEmpty'=>!CCaptcha::checkRequirements(), 'on'=>['registration']],
public function actions()
{
return
[
// captcha action renders the CAPTCHA image displayed on the contact page
'captcha' =>
[
'class' => 'application.modules.crud.components.actions.default.MathCaptchaAction',
'minLength' => 2,
'maxLength' => 10,
'testLimit' => 1,
//'backColor' => 0xFFFFFF,
]
];
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question