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 that Tank Auth, which is a permission management library for Codeigniter, is used by CI to transfer the database using TankAuth and causes incorrect password users. it 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!