Why not change the captcha when refreshes page? (Yii)

Good day! I have a problem, the standard captcha does not change when refresh page. Tried it as written the forum, but I can't update the captcha. Maybe something is wrong? The View to the standard captcha. In the controller advanced settings no.

October 3rd 19 at 01:56
4 answers
October 3rd 19 at 01:58
Solution

This is the default behavior of captcha. Captcha will change if not the correct type. Number of incorrect attempts is defined in the testLimit. Add in the controller, the following code below the picture changed when the page is refreshed:

$this->createAction('captcha')->getVerifyCode(true);

October 3rd 19 at 02:00

This is the normal default behavior of the captcha. Before you can't go wrong when you enter or successfully entered, it is not trapesitsa.

October 3rd 19 at 02:02

Isn't she supposed to change when you f5 your browser?

October 3rd 19 at 02:04

in Veuve correct

<?php $this--->widget('CCaptcha',array('showRefreshButton' => false, 'clickableImage' => true, 'imageOptions' => array('title' => 'Update', 'style' => 'cursor: pointer;'),)); >

by clicking on the picture will be updated

Find more questions by tags YiiCAPTCHA