Jump to content

syncronisation of customer from other packages: how to hand generate a password?º


Recommended Posts

I'm not sure whether this is what you are asking for, but here is how PrestaShop generates a new password for a user when the "Forgot your password?" option is chosen:

$customer->passwd = Tools::encrypt($password = Tools::passwdGen(intval(MIN_PASSWD_LENGTH)));



The value of MIN_PASSWD_LENGTH is 8 by default.

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...