Solution to password user error caused by CI's use of TankAuth to Transfer Database

Source: Internet
Author: User
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!

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.