Igor's Blog
Programming, DIY, Games, Hacks, and Tech

Getting locked out of your PrestaShop admin account can be a real pain, luckily there is a straight forward way to reset your password as long as you have access to the server that the shop is running on. For this you will need access to the server configuration file and the PrestaShop database via phpMyAdmin.

Step 1 - Find the _COOKIE_KEY_ from your shop's configuration file.

Look for a file called settings.inc.php on your server. This should be in the config directory e.g. config/settings.inc.php
One of the entries in this file will be _COOKIE_KEY_, copy the text between the single quotes.
 config/settings.inc.php
define('_COOKIE_KEY_', 'AbCdEfGhIjKlMnOpQrStUvWxYz1234567890aBcDeFgHiJkLmNoPqRsT');


Step 2 - Open the ps_employees table in the PrestaShop database in phpMyAdmin.

The steps for getting to phpMyAdmin vary from server to server so I won't detail them here. This should be somewhere under 'Databases' in your hosting account. Once phpMyAdmin is open, click on the PrestaShop database (in case you do no know its name, the configuration file from above will also tell you this).

After you find the database, scroll down to the 'ps_employees' table and click the 'Edit' button on the account you are locked out of.
prestapwd1.png


Step 3 - Modify the stored password.

Scroll down to 'passwd', from the function list select MD5 and enter the updated password in the text box to the right.

The updated password you put in has to be in a particular format. Remember the _COOKIE_KEY_ from above? You need that. Simply append your new password to the value of _COOKIE_KEY_ and paste that in the input box.

For example - if you want your password to be "MyN3wP4ssw0rd", using the value of _COOKIE_KEY_ from above you will end up pasting this (without the quotes): "AbCdEfGhIjKlMnOpQrStUvWxYz1234567890aBcDeFgHiJkLmNoPqRsTMyN3wP4ssw0rd"
prestapwd2.png




Step 4 - Save the changes.

After you pasted the password scroll all the day to the bottom, select Save and click Go. You can now use the new password to login into your PrestaShop admin account again.
prestapwd3.png


-i

comments powered by Disqus
Other posts you may like...

Recent Blog Posts

A hack to create an uber jar with the Maven Shade Plugin using local jar files

Is it worth it? Apple USB-C Digital Multi AV adapter vs a cheap eBay clone

Running X11 graphical applications after changing to another user using 'sudo su'

How to stop Facebook using ad images as post sharing thumbnails

Picking lists for Atari Lynx capacitor replacement kits

Performance - 2012 Retina MacBook Pro vs 2017 MacBook Pro

Look and feel - 2012 Retina MacBook Pro vs 2017 MacBook Pro

Using math to work out the diameter of hard to reach water cooling pipes

How to get the unreachable shard in the Hinterlands in DragonAge Inquisition

Measy RC12 wireless 2.4Ghz keyboard touchpad review

Recent Galleries

Monument Valley 2 is released and does not disappoint

Space Food - Chocolate Ice Cream with Chocolate Chips

Legeod Star Wars AT-DP kit

DIY spare parts computer build with a RAIDMAX Anura case

Fake 'Lepin' brand Lego packaging

Hardwood garden bench with clear resin void filler

Fixing a 3D printer extruder that stopped heating up

Easily increase disk space in a Lenovo Ideapad 100S 14" laptop with an M.2 SSD

Making a multi-piece 3D printed solder spool holder stand

DIY indoor apartment grow light wiring

My Other Web Sites

Igor and Elise's Travels
Riverside Expressway Cam
300 George St Blogumentary

My Online Tools

UUID to OID Converter
Guru JSON-RPC Tester
Extrudifier Object Designer
Travel ┬ÁBlog

Blogs and Friends

Matt Moores Blog
Georgi's FlatPress Guide
Perplexing Permutations
The Security Sleuth
Ilia Rogatchevski
Travelling Fairy

Blog Activity

Blog Activity
Don't forget to
me for more great articles!
Don't show this again