{"id":6575,"date":"2015-02-13T01:38:11","date_gmt":"2015-02-13T06:38:11","guid":{"rendered":"http:\/\/info.template-help.com\/?p=6575"},"modified":"2017-02-22T04:01:56","modified_gmt":"2017-02-22T09:01:56","slug":"how-to-reset-prestashop-admin-details","status":"publish","type":"post","link":"https:\/\/www.templatemonster.com\/help\/how-to-reset-prestashop-admin-details.html","title":{"rendered":"PrestaShop 1.4.x-1.6.x. How to reset admin panel details"},"content":{"rendered":"<p><\/p>\r\n<p>This tutorial shows how to reset admin details in PrestaShop.<\/p>\r\n<p><a href=\"http:\/\/www.youtube.com\/watch?v=Nm1GPc-hXSE?width=1280&amp;height=720\" rel=\"prettyPhoto\">PrestaShop 1.4.x-1.6.x. How to reset admin panel<\/a><\/p>\r\n<p>There are two methods  to reset admin panel details in PrestaShop &#8211; via store&#8217;s <strong>&#8216;Lost Password?&#8217;<\/strong>  option or via database.<\/p>\r\n<p><strong>I. PrestaShop admin panel allows you to recover password if it has been forgotten.<\/strong><\/p>\r\n<ol>\r\n<li>\r\n<p>Click <strong>&#8216;Lost Password?&#8217;<\/strong> link under login form:<\/p>\r\n<p>\t<a href=\"\/help\/wp-content\/uploads\/2011\/03\/PrestaShop_How_to_reset_admin_details_1.jpg\"><img loading=\"lazy\" src=\"\/help\/wp-content\/uploads\/2011\/03\/PrestaShop_How_to_reset_admin_details_1-300x228.jpg\" alt=\"PrestaShop_How_to_reset_admin_details_1\" width=\"300\" height=\"228\" class=\"aligncenter size-medium wp-image-40545\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2011\/03\/PrestaShop_How_to_reset_admin_details_1-300x228.jpg 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2011\/03\/PrestaShop_How_to_reset_admin_details_1-150x114.jpg 150w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2011\/03\/PrestaShop_How_to_reset_admin_details_1.jpg 1000w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\r\n<p>It leads you to another page, where email  address should be entered. <\/p>\r\n<\/li>\r\n<li>\r\n<p>Type there email assigned to administrator login.  Click <strong>&#8216;Send&#8217;<\/strong> button. Pop-up window with  confirmation that email has been sent will appear. <\/p>\r\n<\/li>\r\n<li>\r\n<p>\r\n  Now check inbox emails,  message with new password from your store should arrive. Use new password  generated by PrestaShop to log into admin panel of the site: <\/p>\r\n<p>  <a href=\"\/help\/wp-content\/uploads\/2011\/03\/PrestaShop_How_to_reset_admin_details_2.jpg\"><img loading=\"lazy\" src=\"\/help\/wp-content\/uploads\/2011\/03\/PrestaShop_How_to_reset_admin_details_2-300x228.jpg\" alt=\"PrestaShop_How_to_reset_admin_details_2\" width=\"300\" height=\"228\" class=\"aligncenter size-medium wp-image-40546\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2011\/03\/PrestaShop_How_to_reset_admin_details_2-300x228.jpg 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2011\/03\/PrestaShop_How_to_reset_admin_details_2-150x114.jpg 150w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2011\/03\/PrestaShop_How_to_reset_admin_details_2.jpg 1000w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\r\n<\/li>\r\n<\/ol>\r\n<p class=\"\"><strong>II. In case you can&#8217;t reset admin password using  previous method for some reasons, this can be performed via hosting tools. Log into  cPanel (or FTP) and phpMyadmin <\/strong>(or any other tool you use for Database  management). <\/p>\r\n<ol>\r\n<li>\r\n<p>Select database used  for your store under phpMyAdmin tool. Click <strong>RUN<\/strong> tab on top and paste the following line  into  <strong>&#8216;Run SQL query\/queries&#8217; <\/strong> text area:<\/p>\r\n<pre> UPDATE `ps_employee` SET `passwd` = MD5('<_COOKIE_>password') WHERE `ps_employee`.`id_employee` = 1;<\/pre>\r\n\r\n<p>Next, you have to modify  this line with correct cookie key and new password. <\/p>\r\n<\/li>\r\n<li>\r\n<p>Replace <strong>&lt;_COOKIE_&gt;<\/strong> with an actual cookie code. For  this go to the server files, open root of PrestaShop installation, and  locate <strong>\/config\/settings.inc.php<\/strong> file in there. Its content looks similar to following:<\/p>\r\n<pre class=\"brush:sql\">\r\ndefine('_DB_SERVER_', 'localhost');\r\ndefine('_DB_NAME_', 'templa39_judy_presta');\r\ndefine('_DB_USER_', 'templa39_jpresta');\r\ndefine('_DB_PASSWD_', 'ynb[ruC3S2~}');\r\ndefine('_DB_PREFIX_', 'ps_');\r\ndefine('_MYSQL_ENGINE_', 'InnoDB');\r\ndefine('_PS_CACHING_SYSTEM_', 'CacheMemcache');\r\ndefine('_PS_CACHE_ENABLED_', '0');\r\ndefine('_MEDIA_SERVER_1_', '');\r\ndefine('_MEDIA_SERVER_2_', '');\r\ndefine('_MEDIA_SERVER_3_', '');\r\ndefine('_COOKIE_KEY_', 'EGbvvetrMAhxyUupKday1VTuGG2RDywT08QxaqQKnyEfrWw1HzZoP6YP');\r\ndefine('_COOKIE_IV_', 'KmnKyzo5');\r\ndefine('_PS_CREATION_DATE_', '2014-11-10');\r\ndefine('_PS_VERSION_', '1.6.0.6');\r\ndefine('_RIJNDAEL_KEY_', 'iMjmuuyINoeIsaUPiM7mzWXkERR9Cq2j');\r\ndefine('_RIJNDAEL_IV_', '4\/3RSxDX5jFFpnPJ83aVMQ==');\r\n<\/pre>\r\n<p>  <a href=\"\/help\/wp-content\/uploads\/2011\/03\/PrestaShop_How_to_reset_admin_details_3.jpg\"><img loading=\"lazy\" src=\"\/help\/wp-content\/uploads\/2011\/03\/PrestaShop_How_to_reset_admin_details_3-300x228.jpg\" alt=\"PrestaShop_How_to_reset_admin_details_3\" width=\"300\" height=\"228\" class=\"aligncenter size-medium wp-image-40547\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2011\/03\/PrestaShop_How_to_reset_admin_details_3-300x228.jpg 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2011\/03\/PrestaShop_How_to_reset_admin_details_3-150x114.jpg 150w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2011\/03\/PrestaShop_How_to_reset_admin_details_3.jpg 1000w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\r\n<p>Copy <strong>&#8216;_COOKIE_KEY_&#8217; value<\/strong> and place that to  SQL query. In my  case it is the following &#8211; EGbvvetrMAhxyUupKday1VTuGG2RDywT08QxaqQKnyEfrWw1HzZoP6YP<\/p>\r\n<\/li>\r\n<li>\r\n<p>Replace the word &#8216;password&#8217;  with an actual password for site admin panel. <\/p>\r\n<\/li>\r\n<li>\r\n<p>The final result should look similar to this example:<\/p>\r\n<pre class=\"brush:sql\">UPDATE `ps_employee` SET `passwd` = MD5('EGbvvetrMAhxyUupKday1VTuGG2RDywT08QxaqQKnyEfrWw1HzZoP6YPnewpassword123')  WHERE `ps_employee`.`id_employee` = 1;\r\n<\/pre>\r\n<p class=\"attention\">Note! There  must be no spaces or any additional symbols between the cookie code and the  password:<\/p>\r\n<p>  <a href=\"\/help\/wp-content\/uploads\/2011\/03\/PrestaShop_How_to_reset_admin_details_4.jpg\"><img loading=\"lazy\" src=\"\/help\/wp-content\/uploads\/2011\/03\/PrestaShop_How_to_reset_admin_details_4-300x228.jpg\" alt=\"PrestaShop_How_to_reset_admin_details_4\" width=\"300\" height=\"228\" class=\"aligncenter size-medium wp-image-40548\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2011\/03\/PrestaShop_How_to_reset_admin_details_4-300x228.jpg 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2011\/03\/PrestaShop_How_to_reset_admin_details_4-150x114.jpg 150w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2011\/03\/PrestaShop_How_to_reset_admin_details_4.jpg 1000w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\r\n<\/li>\r\n<li>\r\n<p>Press <strong>&#8216;GO&#8217;<\/strong> button to execute the query. You should get an approving  message, meaning  password has been reset. Now you can use that one to  log into the admin panel of your Prestashop site. <\/p>\r\n<\/li>\r\n<\/ol>\r\n<p>Feel free to check the detailed video tutorial below:<\/p>\r\n<p><a href=\"http:\/\/www.youtube.com\/watch?v=Nm1GPc-hXSE?width=1280&amp;height=720\" rel=\"prettyPhoto\">PrestaShop 1.4.x-1.6.x. How to reset admin panel<\/a><\/p>\r\n<p><\/p>","protected":false},"excerpt":{"rendered":"<p>This tutorial shows how to reset admin details in PrestaShop.<\/p>\n","protected":false},"author":66,"featured_media":43756,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[732],"tags":[582,2564,545,666,764,808,810,552,809],"_links":{"self":[{"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/posts\/6575"}],"collection":[{"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/users\/66"}],"replies":[{"embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/comments?post=6575"}],"version-history":[{"count":0,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/posts\/6575\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/media\/43756"}],"wp:attachment":[{"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/media?parent=6575"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/categories?post=6575"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/tags?post=6575"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}