Fixes issue #539: Yii2 Csrf protection broken

This commit is contained in:
Qiang Xue
2013-06-15 15:33:27 -04:00
parent 5a8e4b648b
commit 36f6ebab7f
3 changed files with 15 additions and 10 deletions

View File

@ -21,6 +21,9 @@ use yii\helpers\Html;
*/
class CaptchaValidator extends Validator
{
/**
* @var boolean whether to skip this validator if the input is empty.
*/
public $skipOnEmpty = false;
/**
* @var boolean whether the comparison is case sensitive. Defaults to false.