X-Cart:How do I change or reset my admin password? (I lost it)

From X-Cart 4 Classic
Jump to: navigation, search

If you happen to have another admin account, use this account to reset your lost password:

  1. Log in to your store's admin area using a working admin account.
  2. Open for editing the profile of the admin user whose password was lost.
  3. Change the password as needed.

Alternatively, if you remember your admin username/admin email address, you can use X-Cart's reset password functionality:

  1. In Admin area, go to the Password Recovery page:
    • On the Admin area home page (httр://<YOUR_XCART_DOMAIN>/admin/home.php), click the "Forgot password?" link.
      OR
    • Enter the following address in your browser's address bar: httр://<YOUR_XCART_DOMAIN>/admin/help.php?section=Password_Recovery.
  2. Enter your admin username or email address and click Submit. An email message with a password reset link will be mailed to your admin email address.
  3. Use the password reset link to rest your password.

If for some reason the above methods do not work for you (for example, you lost access to you admin email box), there's still hope. You can create a temporary admin account and use it to regain access to your store's Admin area. As soon as you are logged in as admin, you will be able to either reset the password (and, if necessary, the email address) for the admin user whose password was lost or to get rid of that admin user account making the temporary admin account your permanent one.

Here's how you can create a temporary admin account:

X-Cart versions 4.5.4 and earlier:

Decide on the username and password you would like to use for your temporary admin account; for example, mytempadmin/mytempadmin. Open your phpMyAdmin (supplied by your hosting company), click the "SQL" tab and run the following query using the username and password you thought up:

X-Cart GOLD or GOLD PLUS edition

DELETE FROM xcart_customers WHERE login = 'mytempadmin';
INSERT INTO xcart_customers (login, password, usertype)
VALUES ('mytempadmin', 'mytempadmin', 'P');

X-Cart PLATINUM or PRO edition

DELETE FROM xcart_customers WHERE login = 'mytempadmin';
INSERT INTO xcart_customers (login, password, usertype)
VALUES ('mytempadmin', 'mytempadmin', 'A');

You should now be able to log in using the following details:

  • Username: mytempadmin
  • Password: mytempadmin

On X-Cart versions 4.4.0 and later, an attempt to log in using the above method may cause an error:

Email address is invalid! Please correct

This error occurs in stores using the 'Email as login' user authentication mode. If you got this error, replace the username in the above query statement with your valid email address and re-run the query. For example, if your email address is mytempadmin@example.com, use the following (the below example is for GOLD/GOLD PLUS):

DELETE FROM xcart_customers WHERE login = 'mytempadmin@example.com';
INSERT INTO xcart_customers (login, password, usertype)
VALUES ('mytempadmin@example.com', 'mytempadmin', 'P');

After that you should be able to log in using the following credentials:

  • Email: mytempadmin@example.com
  • Password: mytempadmin

X-Cart versions 4.5.5 and later:

Decide on the login you would like to use for your temporary admin account. We recommend using your email address, as this works well both for stores with the 'Username as login' user authentication mode and stores with the 'Email as login' user authentication mode. Let's say you are going to use 'mytempadmin@example.com' as your admin login. You do not need to worry about creating a good password just now, it is not really important as you will have to change it before you can actually log in; for the sake of example, we'll use 'mytempadmin' as the password.

Open your phpMyAdmin (supplied by your hosting company), click the "SQL" tab and run the following query:

X-Cart GOLD or GOLD PLUS edition

DELETE FROM xcart_customers WHERE login = 'mytempadmin@example.com';
INSERT INTO xcart_customers (login, password, usertype, email)
VALUES ('mytempadmin@example.com', 'mytempadmin', 'P', 'mytempadmin@example.com');

X-Cart PLATINUM edition

DELETE FROM xcart_customers WHERE login = 'mytempadmin@example.com';
INSERT INTO xcart_customers (login, password, usertype, email)
VALUES ('mytempadmin@example.com', 'mytempadmin', 'A', 'mytempadmin@example.com');

In Admin area, go to the Password Recovery page:

  • On the Admin area home page (httр://<YOUR_XCART_DOMAIN>/admin/home.php), click the "Forgot password?" link.
    OR
  • Enter the following address in your browser's address bar: httр://<YOUR_XCART_DOMAIN>/admin/help.php?section=Password_Recovery.

Request change of password for the temporary admin account you just created: On the Password Recovery page, enter the email address you used for your temporary admin account and click Submit. An email message with a password reset link is mailed to your admin email address.

Use the password reset link provided in the email message to reset your password. Before saving the new password, be sure to disable the admin profiles' authenticity check for the xcart_customers table by setting the value of the constant CHECK_CUSTOMERS_INTEGRITY in your store's main configuration file config.php to FALSE (Without disabling this check you will not be able to save the new password). After resetting the password, restore the value of CHECK_CUSTOMERS_INTEGRITY in config.php to TRUE.

Now you should be able to log in to your store's Admin area using your new password.


If you find it difficult to do it yourself - feel free to request our support team for assistance via your personal Helpdesk.