Jump to content

[SOLVED] Can't log into BO


Recommended Posts

I have a problem, I can't log inte BO any more. I get the message: "employee does not exist, or bad password" and I've searched for this on the forum, but havn't really found any solution. I have sent for a new password but that doesn't work either :/

Please help me, I have to be able to log in.

Ps: Tonight (when I could log in) I did change my theme and install the Swedish language again etc, can if have to do with that?

Link to comment
Share on other sites

Solution 1. Reset password at database directly.
You need to have access your database and permission to execute SQL

SQL statement

UPDATE ps_employee SET passwd = md5('_COOKIE_KEY_YOUNEWPASSWORD') WHERE email = 'YOUEMAILADDRESS';


_COOKIE_KEY_ is defined in config/setting.inc.php
YOUNEWPASSWORD is your new password
YOUEMAILADDRESS is the email address registered as employee

Solution 2. Bypass authentication, not recommended.
You need to have access your website source code.

change line 52 of admin/login.php file to bypass authentication temporary
line 52 before change

$employee = $employee->getByemail($email, $passwd);



line 52 after change

$employee = $employee->getByemail($email, NULL);



For more detailed, see
http://alvinjiang.blogspot.com/2010/09/prestashop-tips-admin-password-recovery.html

Link to comment
Share on other sites

  • 3 weeks later...

@Kelvin you take only the value under ('_COOKIE_KEY_', 'THIS IS THE VALUE YOU NEED it looks like this -> avgix5nhD0rrACcBmccAjtNGGcwK3duAP0jK') and insert this value into SQL statement UPDATE ps_employee SET passwd = md5('_COOKIE_KEY(this is where you have to insert that long key)_YOUNEWPASSWORD') WHERE email = 'YOUEMAILADDRESS';

Hope it's more clear now ;)

but actually this haven't worked for me :) don't know why, cause it should. Anyway...

I went for shokinro solution #2. Bypassed the authentication changed my password in the BACK OFFICE and then restored 52 line and that's it. Problem solved. Thanks a lot shokinro ;)

Link to comment
Share on other sites

×
×
  • Create New...