CI使用Tank Auth转移数据库导致密码用户错误的解决办法_php实例

WBOY
Release: 2016-06-07 17:19:08
Original
776 people have browsed it

Tank Auth是针对Codeigniter的权限管理类库,功能很强大。整合了CI之后,有一天将数据库转到另一台服务器上,发现使用之前的用户名和密码都无法登录了。

折腾半天,终于找到解决办法:

1、找到config/tank_auth.php文件

2、修改参数

将 $config['phpass_hash_portable'] = FALSE; 修改为

复制代码代码如下:
$config['phpass_hash_portable'] = TRUE;

3、然后在本地用之前的用户密码登录,修改密码

4、再次转移表 users

5、在服务器用修改后的密码登录

这样就正常了!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!