Jump to content

Accidentally deleted Administrator account!


Recommended Posts

Hey guys,

I was editing the contact form and deleting an employee and accidentally deleted the Administator account. Now I can't login. I tried retrieving password and it said employee doesn't exist. I there anyway I can somehow get my account back? Thanks heaps!

Link to comment
Share on other sites

Try to create a new account by executing this SQL query in phpMyAdmin (I assume that your admin profile ID is 1, that is generally the case) :

Warning : Replace name, lastname and email by yours.

INSERT INTO `ps_employee` ( `id_employee` , `id_profile` , `lastname` , `firstname` , `email` , `passwd` , `last_passwd_gen` , `stats_date_from` , `stats_date_to` , `active` )
VALUES (
NULL , '1', 'Name', 'Lastname', '[email protected]', '7750000000000000a4ca0418b5e436a2',
CURRENT_TIMESTAMP , '2009-01-01', '2009-12-31', '1'
);



When done, create a new password with that :
http://www.prestashop.com/forums/viewreply/92709/

Next, log into your BO.

Link to comment
Share on other sites

  • 2 years later...
×
×
  • Create New...