Solutions for Password User Errors Caused by CI Transferring Database Using Tank Auth
- 2021-06-29 10:26:24
- OfStack
Tank Auth is a powerful privilege management class library for Codeigniter.After integrating CI, one day I moved the database to another server and found that I could not log in with my previous username and password.
After half a day's tossing, we finally found a solution:
1. Find config/tank_auth.php file
2. Modify parameters
Will $config['phpass_hash_portable'] = FALSE;Modify to
$config['phpass_hash_portable'] = TRUE;
3. Then log in locally with the previous user password to change the password.
4. Retransfer table users
5. Log on with the modified password on the server
That's normal!