Merge branch 'master' of git://github.com/yiisoft/yii2

This commit is contained in:
Tom Worster
2015-10-10 15:08:29 -04:00

View File

@@ -184,7 +184,7 @@ class CaptchaAction extends Action
$session = Yii::$app->getSession(); $session = Yii::$app->getSession();
$session->open(); $session->open();
$name = $this->getSessionKey() . 'count'; $name = $this->getSessionKey() . 'count';
++$session[$name]; $session[$name] = $session[$name] + 1;
if ($valid || $session[$name] > $this->testLimit && $this->testLimit > 0) { if ($valid || $session[$name] > $this->testLimit && $this->testLimit > 0) {
$this->getVerifyCode(true); $this->getVerifyCode(true);
} }