Browse Source

change captcha if it's validated.

tags/2.0.0-beta
Qiang Xue 11 years ago
parent
commit
2356e933ee
  1. 2
      framework/yii/web/CaptchaAction.php

2
framework/yii/web/CaptchaAction.php

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

Loading…
Cancel
Save