78983494

78983494

yii开始

  • 财富值5
  • 威望值0
  • 总积分25

个人信息

  • 继承yii的CaptchaAction,将这个validate方法重写一下,去掉验证成功重新获取验证码的那个条件,然后在你使用captcha的控制器中将captcha的class改为这个新建的CaptchaAction应该就可以了

    public function actions()
        {
            return [
                'captcha' => [
                    **'class' => 'common\actions\CaptchaAction',**
                    'minLength' => 4,
                    'maxLength' => 4,
                    'transparent' => true,
                    'offset' => 8,
                    'padding' => 1,
                ],
            ];
        }
    
试用期 等级规则
25/50
资料完整度
50/100
用户活跃度
0/100

Ta的关注

0

Ta的粉丝

1

Ta的访客

5