Jump to content

Prestashop 1.6 password rest fails


Recommended Posts

Problem:

 

Prestashop password reset fails. Once it fails, Prestashop password reset breaks all employee passwords.

 

Solution:

 

Instructions on how to manually reset prestashop employee password using PHPMyAdmin

 

 

Tested on Prestashop 1.6.1.5 (confirmed to work on earlier versions to 1.5)

 

1.  Log in to your cpanel. (or use ftp)

       Open file manager.

       Go to your shop's root directory

       Open to the "config" folder.

       Find and Edit the settings.inc.php file

 

(If you do not use cpanel then FTP to your shop's root directory. Open the "config" folder" and then download a copy of the "settings.inc.php" file)

 

2. Open/Edit the settings.inc.php file.

      Find the line in the settings.inc.php file that contains: "COOKIE_KEY". 

      Copy only the key without the quotes.

 

Example Key:

       ajeuifknshw2pulwsbdtelamxbcyejalpqpsdmfjqbpdbytwlochetpzclws

 

 

3. Paste the key on to notepad++ or your favorite text editor

 

4. At the very end of the cookie_key you pasted to notepad type in your new password.

        No space between the cookie key and the password.

 

 

Example cookie WITH New password:

      ajeuifknshw2pulwsbdtelamxbcyejalpqpsdmfjqbpdbytwlochetpzclwsNEWPASSWORD

 

 

OK, you're half way there.

 

 

5. Open PHPMYAdmin

    Find the row labled "ps_employee" and open it. 

    (The prefix may be slightly different:  xxxx_employee)

 

 

6. Find the employee that needs a new password. Click "edit"

 

 

Two items need to be changed on the password row:

 

 

7. First item: "Function" column

      Use the dropdown to select the MD5 option.

 

8. Second item: The "Value" column.

     Delete existing key in the "value" column.

     Paste the new key with the new password attached.

     (See the "Example cookie WITH New password" above.)

 

 

9. Go to the bottom and click "Go"

 

10. You should now be able to log in.

 

 

 

I hope this helps someone out there.

 

 

 

 

 

I write these
 
 
 
 
 
 
 
 

Share this post


Link to post
Share on other sites

  • 3 weeks later...

I cannot login to my offline prestashop. The password I generated from the system did not arrived in my email. Now, I cannot login. 

 

After I click forgot password, entered my email address, it says:  

  1. An error occurred while attempting to change your password.

What should I do?  Where is cPanel?

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More