AntoineBa Posted May 31, 2016 Share Posted May 31, 2016 (edited) Hello, I have a client database with MD5 passwords. I would like to import on Prestashop. How do I? The Passwords in MD5 is located in a magento database I would put on Prestashop Edited May 31, 2016 by Jahyno97232 (see edit history) Link to comment Share on other sites More sharing options...
Simonas Invertus Posted June 1, 2016 Share Posted June 1, 2016 I am not sure if that is possible. Prestashop uses MD5 to store passwords, but it also uses special key so the rough formula for passwords is MD5(salt+password). If magento uses different formula there is no way to make passwords work. If Magento uses exactly the same formula there is still the issue of 'salt' part. So the best you can do is to ask users to click forgot password after migration. Link to comment Share on other sites More sharing options...
bellini13 Posted June 1, 2016 Share Posted June 1, 2016 apparently Magento also uses a salt:password, but the salt is going to be different than what Prestashop uses. So you could use a service that advertises migration services from magento to prestashop, and they claim they have a way to migrate the password. http://litextension.com/prestashop-migration-tool/magento-to-prestashop.html However I suspect it includes a plugin, which does something like this 1) You take the password value from magento and store it in prestashop without any modification to the value. 2) On Prestashop, you would install an override of the AuthController. The override would include a condition that would try the magento password algorithm first, and compare it to the stored md5 value. If its a match, then convert the value using the normal prestashop algorithm, store that in the database, and then allow the logon to proceed. If it was not a match, then just try the standard prestashop password algorithm (perhaps this customer already logged in, or perhaps they are a new customer). If neither match, then fail the logon attempt Eventually all passwords get converted to prestashop algorithm, depending if all customer's logon. You could even remove this override after a certain period of time, and then force password resets for all customers that did not logon. 1 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