1. First log in to the database and find the database corresponding to the website. Here we mainly use the member table and times table
2. Is the IP address locked? If so, do I really have to wait for an hour? Read here to teach you how to remove the lock. If not, just skip the second part and just read the fourth part.
3. Open your phpcms_times table. The prefix may be different according to your own needs. The situation is different. Delete the item corresponding to your IP address. If you are not sure about your information, you can directly select all, and then click Delete. In this way, you can log in to the backend directly without the IP lock prompt
4. Find your password key PASSWORD_KEY and find config in the include directory. inc.php file, search for PASSWORD_KEY and find the value you set, as shown in the figure:
5. Write a program to generate a new password
in phpcms , the password is stored using the secret key password and then md5 encryption. So we only need to write the following program to output the encrypted string of our password, or we can use the existing web page md5 encryption.
Sample program:
<?php $str='passkey'.'111111'; echo md5($str); ?>
6. Copy the encrypted string, find the phpcms_member table in the database, select your user name, and click Edit. Then replace the password string with the copied encrypted string
7. In this way, the modification process is over. Return to the normal background and use the password just set ( 111111) You can log in directly
Recommended tutorial:phpcms tutorial
The above is the detailed content of What should I do if I forget my phpcms password?. For more information, please follow other related articles on the PHP Chinese website!