leo_howl
- leo_howl 赞了回答
验证码不变需要改框架源码 vender\yiisoft\yii2\captcha\CaptchaAction.php getVerifyCode($regenerate = true)
验证码总是错误 应该是你的 $captchaAction 属性没有设置正确。
model 的rules方法
['captcha', 'captcha', 'message'=>'验证码错误', 'captchaAction'=>'user/captcha'],模板的地方也有个 captchaAction 选项。
<?php echo Captcha::widget(['name'=>'captchaimg','captchaAction'=>'login/captcha','imageOptions'=>['id'=>'captchaimg', 'title'=>'换一个', 'alt'=>'换一个', 'style'=>'cursor:pointer;'],'template'=>'{image}']); ?> - leo_howl 赞了评论
composer update yiisoft/yii2
- leo_howl 2018-12-12 已签到连续签到1天,获得了5个金钱
- leo_howl 2018-06-02 已签到连续签到1天,获得了5个金钱
- leo_howl 2018-05-22 已签到连续签到1天,获得了5个金钱
- leo_howl 2018-01-08 已签到连续签到1天,获得了5个金钱