Thursday 11 June 2015

How to regenerating a password manually in prestashop

As situations where nothing happens when you request a new password, and it doesn't work. There can be a number of reasons why this would happen, but the important thing is to be able to log in prestashop user and admin again.
This is will require you to access your database, using phpMyAdmin for instance.
You will have to follow the following procedure:
  1. Open the /config/settings.inc.php file, from your shop's root directory. Find the line containing "_COOKIE_KEY_". Copy the cookie content (without the quotes): it is the MD5 for your original password.
  2. You now need to generate a new MD5 hash for your password:
    1. Go to http://www.miraclesalad.com/webtools/md5.php.
    2. Paste the value of "_COOKIE_KEY_" in the text-field, and right after it, add your desired password. For instance, xykxB41JrEacRIoZxDioPNRmKeuO3ixCLygNxBAkeOkAHf2YUVESuT9jMYPASSWORD, where the cookie ends with T9j, and the desired password is MYPASSWORD (it can be anything you want).
    3. Click on the "md5" button: this will produce a MD5 hash of the text-field's content. Copy it.
  3. You now need to put this hash into your database:
    1. Open you shop's database using phpMyAdmin. If you don't know how to use phpMyAdmin, ask your webmaster, or your host.
    2. Open the pw_employee table, find the row corresponding to your account (it should feature your first name, last name, and e-mail address), and click its "Edit" button.
    3. Find the passwd field, and paste in the MD5 that you just generated.
  4. Log in to your back-office with the email listed in the same table, and the desired password that you used above (MYPASSWORD). This will generate a new cookie key.
If it still doesn't work, use phpMyAdmin to access the ps_shop_url table and check the value of the main shop, whose id is 1. It should contain the shop's file path:
  • If your shop is at the root of the server, this variable should contain "/".
  • If your shop is in a sub-directory, it should contain it. For instance, if it's at "http://www.mywebsite/shop/", then the variable should contain "/shop/".
If all fails, contact the PrestaShop support team at http://support.prestashop.com/en/.

No comments:

Post a Comment