Home > Backend Development > PHP Tutorial > Solution to the problem that CI uses Tank Auth to transfer the database resulting in wrong password user_PHP tutorial

Solution to the problem that CI uses Tank Auth to transfer the database resulting in wrong password user_PHP tutorial

WBOY
Release: 2016-07-13 10:28:29
Original
959 people have browsed it

Tank Auth is a permission management library for Codeigniter with very powerful functions. After integrating CI, one day I transferred the database to another server and found that I could not log in using the previous username and password.

After struggling for a long time, I finally found the solution:

1. Find the config/tank_auth.php file

2. Modify parameters

Change $config['phpass_hash_portable'] = FALSE; to

Copy the code The code is as follows:
$config['phpass_hash_portable '] = TRUE;

3. Then log in locally with the previous user password and change the password .

4. Transfer table users again

5. Log in to the server with the modified password

This is normal!

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/788624.htmlTechArticleTank Auth is a permission management library for Codeigniter with very powerful functions. After integrating CI, one day I transferred the database to another server and found that the previous username and password were both...
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template