TankAuth is a permission management library for Codeigniter and has powerful functions. However, if the database is transferred to another server, the previous user name and password cannot be logged on. This article mainly introduces how CI uses TankAuth to transfer the database to cause password user errors. If you need it, refer to Tank Auth, which is a permission management library for Codeigniter and has powerful functions. After CI integration, I transferred the database to another server one day and found that I was unable to log on with the previous user name and password.
After a long time, I finally found a solution:
1. FindConfig/tank_auth.phpFile
2. Modify parameters
Change $ config ['phpass _ hash_portable '] = FALSE
The Code is as follows:
$ Config ['phpass _ hash_portable'] = TRUE;
3,Then, log on locally with the previous user password and change the password..
4. Transfer the table users again
5. log on to the server with the modified Password
This is normal!