Thursday, June 12, 2014

How to Reset PrestaShop Admin password

Using the Lost password link to reset your PrestaShop password

The Lost password link is the easiest way to reset your PrestaShop password. When you submit your admin email address, PrestaShop will automatically generate a new password and email it to you.
  1. Begin by navigating to your PrestaShop admin log in page.
  2. Under the Log in button, click the Lost password link.
    presta-lost-password
  3. On the next page, enter in your PrestaShop admin email address and click theSend button.
    presta-lost-password-email-address
  4. After you see the notification that your password has been sent, check your email account for an email with your new PrestaShop admin password.
    presta-lost-password-email-sent
    presta-email-new-password
  5. Log back into the PrestaShop Admin Dashboard using the newly received password.
If you would like to change the password to one of your choosing, this can be done within the PrestaShop back office. We suggest that you use the Adminstrator to create a new strong password. For guidance, check out our article on How to create a good password. For step-by-step instructions, please see our tutorial on changing your password in the PrestaShop back office.

Resetting your PrestaShop Password Through the Database

There may be times when you either do not receive the password reset email or PrestaShop has trouble sending the email. Fortunately, there is an alternative for changing the admin password through the PrestaShop database using a _COOKIE_KEY_ from the PrestaShop settings file. The _COOKIE_KEY_ is unique for each PrestaShop installation, so it will need to be retrieved from your PrestaShop files and you cannot use the one shown in this example or one from another PrestaShop store.
  1. Begin by logging into your cPanel account.
  2. Before we access the database, we need the _COOKIE_KEY_ from our PrestaShop config/settings.inc.php file. Using the cPanel File Manager, navigate to the folder where you installed PrestaShop (either public_html or a subdirectory of public_html).
  3. Next, navigate into the config folder inside of this directory where PrestaShop is installed.
    presta-config-folder
  4. Select the settings.inc.php file and open it with the Code Editor or Edit option in File Manager. If an Encoding Check notification pops up, just simply click on the Edit button at the bottom of the window.
    presta-edit-settings-inc-file
  5. Inside the settings.inc.php file copy the entire string of characters between the single quotes for the _COOKIE_KEY value. You may find it helpful to paste this into a text editor file (using a text editor like Notepad, TextEdit) while you are working through the rest of the steps.
    presta-copy-cookie-key
  6. Close the settings.inc.php file and the File Manager tab.
  7. Back on the cPanel home page, select the phpMyAdmin icon under theDatabases area. 
    phpmyadmin-icon-cpanel
  8. In phpMyAdmin, select your PrestaShop database name from the menu on the left side of the page.
    presta-password-database
  9. Inside your PrestaShop database scroll down the table names shown in the left menu and select the ps_employee table (prefix may vary if you changed this during the PrestaShop installation).
    presta-employee-table
  10. Click the edit link for your PrestaShop admin user
    presta-edit-user-in-database
  11. In the passwd value field paste in the _COOKIE_KEY value you copied earlier from settings.inc.php, followed by your new password. Do not use the example "NewPassword" shown below. This is only used as a placeholder in this tutorial to show you where to place your new password.
    presta-database-new-password
  12. In the Function column, select MD5 from the drop down menu
    presta-database-password-md5
  13. Click the Go button near the bottom of the page.
    presta-database-password-go
You've successfully reset your admin password. You can now log into your PrestaShop back office with the new password.

0 comments:

Post a Comment

    Blogger news

    Blogroll

    About