Jump to content

Can't loging into admin after the installation!


Recommended Posts

The installation passed perfect!
At once after I've tried to login to the admin area.
I know for sure the Login and the Pass is 100% correct - but I got the msg:

There is 1 error
employee does not exist, or bad password

when I tried to recover the Password and enter the 100% correct email address, the MSG ->:

There is 1 error
this account doesn't exist

Link to comment
Share on other sites

.The simplest way to generate a new password (for example “mypassword”) is as follows :

1/ Open /config/settings.inc.php and copy the COOKIE_KEY value, a string like :
ugVz7xCw9mYzkUWL1285CCyLb5dQOyNgnTxXDrGP0LZNBLrzKTvWyC0n

2/ Open http://www.md5.fr or http://www.md5.cz and in the field, past the copied string immediately followed (without space) by your password :
ugVz7xCw9mYzkUWL1285CCyLb5dQOyNgnTxXDrGP0LZNBLrzKTvWyC0nmypassword
Submit the form and copy the generated MD5 hash which is like :
c838e4909b92e180e6428e85c15b003d

3/ In your database, in the ps_employe table, locate the record that contains the e-mail address you want to use to connect to the BO, modify this record, and past the MD5 hash in the passwd field. Submit the form.

4/ Connect to the BO.

Link to comment
Share on other sites

Hello. I have the same problem. I did all 4 steps above and check that the field was of EMAIL VARCHAR (128) but the problem persists: Do not enter the Back Office.


Try using the "Lost Password" entry screen in the back office, type the email and tells me to send the password to your mailbox but did not get anything. Please try again yields the following:

There is 1 error
You can regenerate your password only 360 minutes each (s)

Juan Carlos Garcia
Medellin-Colombia-Sur America

Link to comment
Share on other sites

Remember that a unique secret string is generated when prestashop is installed. ( Called _COOKIE_KEY_)
As TropischBruin said -But it also use the pSQL-function in generation.
(some sort of filter for unwanted characters)
Not sure if it does anything with the result, but better safe than sorry..
So all attempts to generate new MD5-Hash without that string will fail for sure.

Here is a small php-file that make the Hash to be inserted in the database.

Upload it in your back-office folder.. and run it..

makepasswordhash.php

<?php
// PasswordHashGenerator for prestashop.
// Uses prestas own variant of MD5-coding.
// Delete this file after you have generated Hash
// Drop this file in your secret Back-office-folder
// This file do NOT change anyting in your DB
// It only gives you the MD5 to be inserted in table
// Using phpMyAdmin or tools like that.

// Best regards KIH.



$pwd = "KIH999"; //edit this to create your own password (not to short) .
define('PS_ADMIN_DIR', getcwd());
include(PS_ADMIN_DIR.'/../config/config.inc.php');
include(PS_ADMIN_DIR.'/functions.php');
$cookie = new Cookie('psAdmin', substr($_SERVER['PHP_SELF'], strlen(__PS_BASE_URI__), -10));
$id_lang = intval($cookie->id_lang) ? intval($cookie->id_lang) : 1;
$iso = strtolower(Language::getIsoById($cookie->id_lang ? intval($cookie->id_lang) : 1));
include(_PS_TRANSLATIONS_DIR_.$iso.'/admin.php');

echo("The MD5 hash to be inserted in DB Table: employee Field: passwd");
echo("
".md5(pSQL(_COOKIE_KEY_.$pwd)));
echo("
");
echo'Password:'.$pwd;
?>

makepasswordhash.php

Link to comment
Share on other sites

Hello.

I followed the instructions and run the. Php displays the following message in the browser:

The MD5 hash to be inserted in DB Table: employee Field: passwd
6a124727775810ff84effe56677ba150
Password:KIH999

However, the record is not updated in the table ps_employes PASSWD field, copy the generated hash code and paste it manually as shown in the attached image.

I try to login and type the password: KIH999 but do not enter and does not generate any error message, as usual, does not enter the BackOffice.

The truth this is very frustrating, I have 1 weeks trying to set up shop but it was impossible, the worst is that we have several in this forum with the same problem and do not see a definitive solution.

Be possible that someone can provide the installer from a previous version 1.2.4 because it is IMPOSSIBLE to make a successful installation.

Thank you very much

Juan Carlos Garcia
Medellin-Colombia

13140_35rMYdHCHtmao1D0lvz1_t

Link to comment
Share on other sites

  • 5 weeks later...
.The simplest way to generate a new password (for example “mypassword”) is as follows :

1/ Open /config/settings.inc.php and copy the COOKIE_KEY value, a string like :
ugVz7xCw9mYzkUWL1285CCyLb5dQOyNgnTxXDrGP0LZNBLrzKTvWyC0n

2/ Open http://www.md5.fr or http://www.md5.cz and in the field, past the copied string immediately followed (without space) by your password :
ugVz7xCw9mYzkUWL1285CCyLb5dQOyNgnTxXDrGP0LZNBLrzKTvWyC0nmypassword
Submit the form and copy the generated MD5 hash which is like :
c838e4909b92e180e6428e85c15b003d

3/ In your database, in the ps_employe table, locate the record that contains the e-mail address you want to use to connect to the BO, modify this record, and past the MD5 hash in the passwd field. Submit the form.

4/ Connect to the BO.


THANK YOU!!!!!!
I tried this because I couldn't login after setting up a copy of my site on localhost...IT WORKED!!!
Link to comment
Share on other sites

  • 2 months later...

There is 1 error
employee does not exist, or bad password

I am getting the same error... I went into phpMyAdmin and there are no records in the ps_employee field.

I created a record (with the password changed to MD5) and I still cannot login.

It seems the last time I tried to install and test this program I had the same results and just stuck with Zen.

Any help would be appreciated!

Thanks,
Patrick

Link to comment
Share on other sites

  • 4 months later...

ImagineFL

Sorry this so long after the topic started but I have the same problem with one of the shops I'm working on.

What do you mean exactly with 'deleted everything'. Where did you delete something, and what?

Thanks in advance,
iboMonkey

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...