- Open the
/config/settings.inc.phpfile, 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.
- You now need to generate a new MD5 hash for your password:
- Go to http://www.miraclesalad.com/webtools/md5.php.
- 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).
- Click on the "md5" button: this will produce a MD5 hash of the text-field's content. Copy it.
- You now need to put this hash into your database:
- Open you shop's database using phpMyAdmin. If you don't know how to use phpMyAdmin, ask your webmaster, or your host.
- Open the
pw_employeetable, find the row corresponding to your account (it should feature your first name, last name, and e-mail address), and click its "Edit" button.
- Find the
passwdfield, and paste in the MD5 that you just generated.
- 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.
- Configure the SMTP server to send emails:
- Get information for SMTP connection from your hosting provider.
- Go to your back office (either you or an administrator who can still log) "E-Mails" page, in the "Advanced parameters" menu.
- Select the "Use my own SMTP settings" option. A form will appear: fill it with the information given by your host.
- Save your changes.
- Request a new password once again. You should receive it.
- Follow these steps:
- Choose a new password. In our example, "$$$rabbit$159$$$".
- Using your FTP client, open the
login.phpfile, located in your administration folder online (the name of which depends on your installation).
At the bottom of the file, add the following line:
echo md5( PSQL( _COOKIE_KEY_ . 'newpassword' ) );
So with our example password:
echo md5( PSQL( _COOKIE_KEY_ . '$$$rabbit$159$$$' ) );
Remember to put your own new password!
- Go to the login screen to the back - office, as if you wanted to log in, and copy the text that appears at the bottom of the page (e.g.: a0ee884b507dd4624ce51968cfbb19a9).
- Go to the PrestaShop database, for example using phpMyAdmin. In the
ps_employeetable, replace the existing value in the
passwdcolumn for the employee of which you want to change the password with the value obtained in the previous step. Save your changes.
- You can now connect with the usual username and new password.
In the event that you deleted the default language pack from your shop install, you can have issues connecting to your back - office again.
Here how to solve this if the default language was English: