Get the App
SLTechnology News&Howtos  ›  Development  › 

How to solve the password user error caused by CI using Tank Auth to transfer database

Shulou Source: shulou.com Published: 2022-06-03 19:48:30 11月12日 Update

This article mainly explains "how to solve the password user error caused by CI using Tank Auth to transfer database", interested friends may wish to have a look. The method introduced in this paper is simple, fast and practical. Let the editor take you to learn how to solve the password user error caused by CI's use of Tank Auth to transfer the database.

Tank Auth is a powerful rights management class library for Codeigniter. After integrating CI, I transferred the database to another server one day and found that I couldn't log in with my previous user name and password.

After tossing around for a long time, I finally found a solution:

1. Find the config/tank_auth.php file

2. Modify parameters

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

The copy 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 with the modified password on the server

This is normal!

At this point, I believe you have a deeper understanding of "how to solve password user errors caused by CI using Tank Auth to transfer database". You might as well do it in practice. Here is the website, more related content can enter the relevant channels to inquire, follow us, continue to learn!

Tags: Password user data database error login code content learning service practical powerful deeper interest again method function parameter sky will practicality Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Xiaomi OPPO Reno MySQL Docker Shulou Tech Info