{"id":229,"date":"2016-03-06T11:24:12","date_gmt":"2016-03-06T08:24:12","guid":{"rendered":"http:\/\/presta.site\/blog\/?p=229"},"modified":"2016-03-06T11:26:56","modified_gmt":"2016-03-06T08:26:56","slug":"how-to-reset-the-admin-password-in-prestashop","status":"publish","type":"post","link":"https:\/\/presta.site\/blog\/en\/how-to-reset-the-admin-password-in-prestashop\/","title":{"rendered":"How to reset the admin password in PrestaShop"},"content":{"rendered":"<p>You can easily reset your admin password if you forgot it. There are two main ways.<\/p>\n<p><!--more--><\/p>\n<h3>1. Reset password by using &#171;password restore&#187; feature.<\/h3>\n<p>You need to go to admin login and press the &#171;I forgot my password&#187; link. Enter your e-mail, press the button and just wait for the mail with a new password.<\/p>\n<p><a style=\"float:left;\" href=\"http:\/\/presta.site\/blog\/wp-content\/uploads\/2016\/03\/22.png\"><img decoding=\"async\" src=\"http:\/\/presta.site\/blog\/wp-content\/uploads\/2016\/03\/22.png\" alt=\"login\" width=\"350\" class=\"aligncenter size-full wp-image-232\" srcset=\"https:\/\/presta.site\/blog\/wp-content\/uploads\/2016\/03\/22.png 772w, https:\/\/presta.site\/blog\/wp-content\/uploads\/2016\/03\/22-300x292.png 300w, https:\/\/presta.site\/blog\/wp-content\/uploads\/2016\/03\/22-768x748.png 768w\" sizes=\"(max-width: 772px) 100vw, 772px\" \/><\/a><a style=\"float:right;\" href=\"http:\/\/presta.site\/blog\/wp-content\/uploads\/2016\/03\/33.png\"><img decoding=\"async\" src=\"http:\/\/presta.site\/blog\/wp-content\/uploads\/2016\/03\/33.png\" alt=\"password restore\" width=\"350\" class=\"aligncenter size-large wp-image-233\" srcset=\"https:\/\/presta.site\/blog\/wp-content\/uploads\/2016\/03\/33.png 772w, https:\/\/presta.site\/blog\/wp-content\/uploads\/2016\/03\/33-300x292.png 300w, https:\/\/presta.site\/blog\/wp-content\/uploads\/2016\/03\/33-768x748.png 768w\" sizes=\"(max-width: 772px) 100vw, 772px\" \/><\/a><\/p>\n<div style=\"clear:both;\"><\/div>\n<p>\nIf don&#8217;t like this way for some reason, then you can use the another one:<\/p>\n<h3>2. Reset admin password in database.<\/h3>\n<p>You have to connect to your shop database by using some tool, for example <span style=\"font-weight:bold;\">phpMyAdmin<\/span>. You could also try a great mini script <a href=\"http:\/\/www.adminer.org\/\" target=\"_blank\" rel=\"nofollow\">Adminer<\/a>.<br \/>\n<span style=\"font-weight:bold;\">Be sure to create a backup before making any changes!<\/span><\/p>\n<ol>\n<li>Open table <span class=\"bold\">ps_employee<\/span>. Prefix may be different, but the main part is &#171;employee&#187;.<\/li>\n<li>Find your account by email and open it for editing.<\/li>\n<li>Go to your site FTP and open this file: \/config\/settings.inc.php. Copy from there the value of the _COOKIE_KEY_ constant. It&#8217;s the longest line in that file.<\/li>\n<li style=\"text-align:left;\">Go back to your database table &#171;ps_employee&#187;. Find a field <span class=\"bold\">passwd<\/span>, select a function <span class=\"bold\">md5<\/span> for it, paste the value from the previous step and add to the end your new password. The result should be looking like <span style=\"white-space: nowrap;\">0OK1eTKVH5JVQ1JQZAAAAAKkL8XN0JmXLjzDTwsvn4jgyuq6EJ8Jr9QmPASSWORD<\/span><br \/>\n<img decoding=\"async\" loading=\"lazy\" class=\"alignnone wp-image-85 size-full\" src=\"http:\/\/presta.site\/blog\/wp-content\/uploads\/2015\/06\/adm.png\" alt=\"adm\" width=\"597\" height=\"33\" srcset=\"https:\/\/presta.site\/blog\/wp-content\/uploads\/2015\/06\/adm.png 597w, https:\/\/presta.site\/blog\/wp-content\/uploads\/2015\/06\/adm-300x17.png 300w\" sizes=\"(max-width: 597px) 100vw, 597px\" \/><\/li>\n<li>Press the save button. Now you can log in with your new password.<\/li>\n<\/ol>\n","protected":false},"excerpt":{"rendered":"<p>You can easily reset your admin password if you forgot it. There are two main ways.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[],"_links":{"self":[{"href":"https:\/\/presta.site\/blog\/wp-json\/wp\/v2\/posts\/229"}],"collection":[{"href":"https:\/\/presta.site\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/presta.site\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/presta.site\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/presta.site\/blog\/wp-json\/wp\/v2\/comments?post=229"}],"version-history":[{"count":13,"href":"https:\/\/presta.site\/blog\/wp-json\/wp\/v2\/posts\/229\/revisions"}],"predecessor-version":[{"id":246,"href":"https:\/\/presta.site\/blog\/wp-json\/wp\/v2\/posts\/229\/revisions\/246"}],"wp:attachment":[{"href":"https:\/\/presta.site\/blog\/wp-json\/wp\/v2\/media?parent=229"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/presta.site\/blog\/wp-json\/wp\/v2\/categories?post=229"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/presta.site\/blog\/wp-json\/wp\/v2\/tags?post=229"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}