Answer the question
In order to leave comments, you need to log in
Why doesn't captcha change when the page is refreshed? (yii)
Good day! I have a problem, the standard captcha does not change when the page is refreshed. Tried as written in the forum, but I can not update the captcha. Maybe I'm doing something wrong? View for captcha is standard. There are no additional settings in the controller.
Answer the question
In order to leave comments, you need to log in
This is the standard captcha behavior. The captcha will change if the input is incorrect. The number of incorrect attempts is set in testLimit. Add the following code in the controller to change the image on page refresh:
$this->createAction('captcha')->getVerifyCode(true);
This is normal captcha behavior. Until you make a mistake when entering it or successfully enter it, it will not reset.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question