thinkcmf后台密码配置文件在哪儿
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了thinkcmf后台密码配置文件在哪儿相关的知识,希望对你有一定的参考价值。
1.如果你已经在后台配置了,邮件发送功能且邮箱是你的真实邮箱,可以到前台登录页找回密码;2.如果你是后台管理员,你可以使用 sp_password()方法生成一下新的密码; 参考技术A <?php
/*这里省略*/
namespace Portal\Controller;
use Common\Controller\HomebaseController;
/**
* 首页
*/
class IndexController extends HomebaseController
public function index()
echo sp_password('666666');//这次一定要记清了,密码是6个6;
exit;
$this->display(":index");
本回答被提问者采纳 参考技术B 这是密文sp_password: ###9471563eb1136fd2a934867a1983bbc3
这是明文:123456
在数据库改一下就OK了。
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>-->
以上是关于thinkcmf后台密码配置文件在哪儿的主要内容,如果未能解决你的问题,请参考以下文章