hostforweb Posted April 27, 2010 Share Posted April 27, 2010 Hello, after calling getclientdetails API, i receive back a response in xml format with password as value. I would like to compare that hashed password with a password that customer entered on a login form. I tried encryptpassword and decryptpassword API calls, but they don't seem to be doing what i expected them to do. Please advise on how to check user password. I am integrating a number of system together, with WHMCS being the login gateway. 0 Quote Link to comment Share on other sites More sharing options...
m00 Posted April 28, 2010 Share Posted April 28, 2010 A little copy-pasta how we do this: $password_whmcs = explode(":", $result['password']); $password_form = md5($password_whmcs[1] . $password); if($password_whmcs[0] == $password_form) return true; // Right else return false; // Wrong 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.