thinkcmf 5关闭后台验证码


 

控制器修改

D:\cmf\thinkcmf\app\admin\controller\PublicController.php

注释

/* $captcha = $this->request->param('captcha');
if (empty($captcha)) {
$this->error(lang('CAPTCHA_REQUIRED'));
}*/
//验证码
/* if (!cmf_captcha_check($captcha)) {
$this->error(lang('CAPTCHA_NOT_RIGHT'));
}*/

 

 

模板文件

D:\cmf\thinkcmf\public\themes\admin_simpleboot3\admin\login.html

 

注释

<!-- <div class="form-group">
<div style="position: relative;">
<input type="text" name="captcha" placeholder="验证码" class="form-control captcha">
<captcha height="32" width="150" font-size="18"
style="cursor: pointer;position:absolute;right:1px;top:1px;"/>
</div>
</div>-->

 


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM