Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.


Guest

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.

Link to comment
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!

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...