Jump to content

Archived

This topic is now archived and is closed to further replies.

Shogan

Password generating trouble.

Recommended Posts

Hi everyone, i got a big trouble with password in os commerce 2.3.

 

I need migrate all users form another database, so i need encrypt the password from text plain.

 

I need do this in a Cron, so i put the file independent from an os commerce store.

 

My encryption code is:

 

function tep_encrypt_password($plain) {
  if (!class_exists('PasswordHash')) {
 include('../includes/classes/passwordhash.php');
  }
  $hasher = new PasswordHash(10, true);
  return $hasher->HashPassword($plain);
}

 

when i try insert the password in mysql oscommerce does not recognize password.

 

Please i need profesional help.

Share this post


Link to post
Share on other sites

Is this other database a software other than osCommerce?

 

If your existing passwords are plain text, then you probably need to convert them using an MD5 hash first, and then osC2.3 will automatically encrypt them to the new password hash when a user logs in.


Follow the community build:

BS3 to osCommerce Responsive from the Get Go!

Check out the new construction:

Admin Gone to Total BS!

Share this post


Link to post
Share on other sites

×