Jump to content

Customers migration: old passwords


Recommended Posts

Hello,

I have about 100 customers in Zencart. After import, login by customers is not possible. I found a problem:

In Zencart - saving password looks like:

$salt = substr(md5($password), 0, 2);
$password = md5($salt . $password) . ':' . $salt;
(e.g. b3fc93970326ba7dcda25ea193017f90:72)




In Prestashop:

md5(_COOKIE_KEY_.$passwd)




1. Can I convert old passwords to new string (acceptable by Presta)? Is it possible?
2. If not, what is a solution? I have two ideas:
a) Edit files in Presta (adjust decrypt to Zencart method). (?)
B) Edit files, but: if ID's are from, e.g. 1 to 100 - use old (Zencart) method, for others ID's - use new method from Presta. (?)


Thanks in advance.

Link to comment
Share on other sites

Tomer and I encountered this problem in the osCommerce to PrestaShop Import module we wrote. We found it impossible to convert osCommerce passwords into PrestaShop passwords. The solution we came up with was to modify the Customer class to accept both osCommerce and PrestaShop passwords.

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...