diff --git a/framework/yii/captcha/CaptchaValidator.php b/framework/yii/captcha/CaptchaValidator.php index 424de2d..83996d5 100644 --- a/framework/yii/captcha/CaptchaValidator.php +++ b/framework/yii/captcha/CaptchaValidator.php @@ -18,6 +18,10 @@ use yii\validators\Validator; * * 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. + * * @author Qiang Xue * @since 2.0 */