Jump to content

Importing customer passwords from 1.4 to 1.5.4


Recommended Posts

Hello everyone

 

I just started a new shop and I've imported all my customers from my old shop to the new one.

I copied the _COOKIE_KEY_ and _COOKIE_IV_ from the settings.inc.php from the old to the new but I still can't login with my own front end account. Is there something else that has to be copied over?

 

Kind regards

 

Denis

 

 

Edit: I fixed this by editing the controllers/admin/AdminImportController.php file, I changed

 

 

if ($customer->passwd)

$customer->passwd = Tools::encrypt($customer->passwd);

 

to

 

 

if ($customer->passwd)

$customer->passwd = $customer->passwd;

 

As the passwords were already encrypted in my previous prestashop installation and don't have to be encrypted a second time.

Edited by DenisDenis (see edit history)
Link to comment
Share on other sites

You should start new database, and start new 1.5.4 installation on that database. Then copy the cookie key from the settings in config folder, and delete the installation and empty the database. Then import your old database into the new one and in the old settings place the new cookie key. I may be wrong, but this is i recall by memory. Try searching for some details.

Link to comment
Share on other sites

  On 4/1/2013 at 8:00 PM, Dreamtheme said:

You should start new database, and start new 1.5.4 installation on that database. Then copy the cookie key from the settings in config folder, and delete the installation and empty the database. Then import your old database into the new one and in the old settings place the new cookie key. I may be wrong, but this is i recall by memory. Try searching for some details.

 

I tried copying the cookie key into my new installation but none of the passwords are working. I dont really understand the complete process you are saying, you want me to install 1.5.4 copy the cookie key, then delete that installation and then import my old database? Because 1.4 doesn't have the same db tables as in 1.5.4.

Link to comment
Share on other sites

×
×
  • Create New...