Focus on cloud service provider activities
Notes on website operation and maintenance

Solve the problem of resetting the administrator's password of the new ZenArt foreign trade program after 90 days of expiration

At present, we use the B2C program of foreign trade website, usually Zencart or Magento. Lao Zuo had contacted Zencart before, and also used it to help customers build a foreign trade website mall. At that time, it was very famous. But the structure is really old and has been adjusted. Some of us will find that the background administrator password of the new version of ZENCART program will become invalid after more than 90 days.

We can set the password not to expire in the program.

First, set the validity period of the permanent password

admin/login.php

Found in file.

define(‘ADMIN_PASSWORD_EXPIRES_INTERVAL’, strtotime(‘- 90 day’));

Then modify the corresponding value to increase the expiration time of the validity period, such as 50 years and 100 years.

Second, set the permanent password method

admin/includes/functions/admin_access.php

Find the "zen_check_for_password_problems()" function, and then add the following:

return false;

III. Password modification method

DELETE FROM admin WHERE admin_name = 'Admin'; INSERT INTO admin (admin_name, admin_email, admin_pass, admin_profile)VALUES ('Admin', ' admin@localhost ', '351683ea4e19efe34874b501fdbf9792:9b', 1);

Modify the password through the command. The password is admin

Note that if you use the SQL command Backup database To ensure that everything is safe.

Domain name host preferential information push QQ group: six hundred and twenty-seven million seven hundred and seventy-five thousand four hundred and seventy-seven Get preferential promotion from merchants.
Like( zero )
Do not reprint without permission: Lao Zuo's Notes » Solve the problem of resetting the administrator's password of the new ZenArt foreign trade program after 90 days of expiration


Scan the code to follow the official account

Get more news about webmaster circle!
Entrepreneurship, operation and new knowledge