教程说明
突然忘记密码,百度了一下 只找到thinkcmf 的找回方式,参考thinkcmf 的找回,找到对应thinkphp的密码加密函数
然后直接放到tpinkphp的登录控制器即可
class Index extends \think\Controller
{
public function index()
{
dump(encryptPassword('123456')); //该文encryptPassword为加密函数
return view();
}
}
把显示的MD5码复制去数据库里面去即可去后台登录
© 版权声明
文章版权归作者所有,未经允许请勿转载。
THE END
暂无评论内容