Jump to content

Importing client csv with MD5 passwords


saeyo

Recommended Posts

Hi everyone,

 

It's my first Prestashop project and I'm hitting some walls. I've done some researched on this but couldn't find an answer that works.

 

I'm importing a client database to prestashop 1.7.2 from a proprietary system where passwords were stored as md5 hash of user passwords.

 

I understand that prestashop works differently and does a md5 of a key concatenated with the user password.

 

So my question is, is there any work around this of I can import clients with their passwords?

 

If not, do you know any simple way to send out an email to every imported client so they can click and reset their password (and the store would give them a 10% discount if they do).

 

thanks so much for your help!

Link to comment
Share on other sites

The main problem is the following: passwords in PrestaShop are encrypted and hashed with a salt. This salt is stored in the file settings.inc.php. You needed to choose the same salt there as the one which was used with the proprietary system. And the encryption must be handled the same way in both systems. If you can't fullfill this prerequisite condition, you will fail.

 

I also don't know if its possible to import users by CSV. However MySQL would do the job with no problems if the encryption question is solved.

Edited by Scully (see edit history)
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...