thecaptain2000 Posted October 18, 2010 Share Posted October 18, 2010 Hello, I am developing a package for synchronising one or multiple prestashop instances with openerp. In the event of a customer being generated on openerp and to be migrated to prestashop, a password has to be generated. is there a PS API for doing that? tx in advanceR Link to comment Share on other sites More sharing options...
rocky Posted October 18, 2010 Share Posted October 18, 2010 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 More sharing options...
thecaptain2000 Posted October 18, 2010 Author Share Posted October 18, 2010 Hi, Thanks, not sure I can call that from an ETL but at least it is a start.RegardsRenato Dall'Armi 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