freedomfflow Posted July 27, 2014 Share Posted July 27, 2014 In a hook I have, where I send data to anther system, I need to send them the password an new customer entered when they ordered a product. In the $vars array, there is a password element, but it has an encrypted/hashed password. How can I access the clear-text password so I can post it over to the 3rd party system? Thanks 0 Quote Link to comment Share on other sites More sharing options...
jclarke Posted July 30, 2014 Share Posted July 30, 2014 WHMCS has a function called decrypt() which you can call to decrypt a service password from a hook. decrypt($vars['params']['password']); 0 Quote Link to comment Share on other sites More sharing options...
sentq Posted July 30, 2014 Share Posted July 30, 2014 as Joe said you can use decrypt(); to retrive service password bot not WHMCS account password, admin and client account passwords in WHMCS are saved in MD5(); format. 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.