htorbov Posted March 17, 2012 Share Posted March 17, 2012 I made a new online store for my company and now I want to transfer all of my PrestaShop customers (~450 accounts) into it. I imported the info that I need and now I have to import the passwords. My website use the php md5() function when logging-in but it seems that PrestaShop is using something different. Can anyone suggest me how to transfer the passwords, please.. I don't want my customers to create new accounts.. Thank you! Link to comment Share on other sites More sharing options...
PrestaShopDeveloper Posted March 17, 2012 Share Posted March 17, 2012 I made a new online store for my company and now I want to transfer all of my PrestaShop customers (~450 accounts) into it. I imported the info that I need and now I have to import the passwords. My website use the php md5() function when logging-in but it seems that PrestaShop is using something different. Can anyone suggest me how to transfer the passwords, please.. I don't want my customers to create new accounts.. Thank you! PrestaShop is using MD5([_COOKIE_KEY_][ACTUAL PASSWORD]) so just change your condition on login. _COOKIE_KEY_ is at config/settings.inc.php 1 Link to comment Share on other sites More sharing options...
bellini13 Posted March 18, 2012 Share Posted March 18, 2012 you could change the auth controller so that it tries both methods for every customer that logs in, then when an existing customer logs in successfully, change the stored password to the new format. for new customers, or future password changes they would use the prestashop method. Link to comment Share on other sites More sharing options...
htorbov Posted March 18, 2012 Author Share Posted March 18, 2012 PrestaShop is using MD5([_COOKIE_KEY_][ACTUAL PASSWORD]) so just change your condition on login. _COOKIE_KEY_ is at config/settings.inc.php Thank you very much, you saved my life!! === bellini13, thanks for the suggestion, I'll think about using the both methods 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