mirror of
https://github.com/yiisoft/yii2.git
synced 2025-11-19 16:01:57 +08:00
Merge branch 'master' of git://github.com/yiisoft/yii2
This commit is contained in:
@@ -184,7 +184,7 @@ class CaptchaAction extends Action
|
||||
$session = Yii::$app->getSession();
|
||||
$session->open();
|
||||
$name = $this->getSessionKey() . 'count';
|
||||
++$session[$name];
|
||||
$session[$name] = $session[$name] + 1;
|
||||
if ($valid || $session[$name] > $this->testLimit && $this->testLimit > 0) {
|
||||
$this->getVerifyCode(true);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user