M
M
Maxim2013-11-17 10:56:33
Yii
Maxim, 2013-11-17 10:56:33

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

4 answer(s)
M
Maxim, 2013-11-17
@traestan

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);

W
windoctor, 2013-11-17
@windoctor

This is normal captcha behavior. Until you make a mistake when entering it or successfully enter it, it will not reset.

M
Maxim, 2013-11-17
@traestan

Shouldn't it change at f5 of the browser?

B
Beaten_Sect0r, 2013-11-17
@Beaten_Sect0r

fix in view
Clicking on the image will update

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question