em.pe Posted August 29, 2010 Share Posted August 29, 2010 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). (?) 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 More sharing options...
rocky Posted August 29, 2010 Share Posted August 29, 2010 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 More sharing options...
em.pe Posted August 29, 2010 Author Share Posted August 29, 2010 Thank you very much for quickly answer. So, you an Tomer modify only "classes/Customer.php" file? Link to comment Share on other sites More sharing options...
rocky Posted August 29, 2010 Share Posted August 29, 2010 Yes, but since it is a paid module, I cannot give you the code. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now