Jump to content

[Release] Password DB howto [API bypass for speed]


bet0x

Recommended Posts

Thanks to Matt for point me on the correct direction:

 

Here is what i made to encode user password (i want a separated login from a win32 soft with my own api) so i made a webservice for that without use curl wich waste lot of BW.

 

Here is the snippet:

 

$datos = $db->query_first("SELECT email, password, id FROM tblclients WHERE id='$_SESSION[uid]'");	
$salt = explode (':', $datos['password']);
$pass = $salt[0];
$hash = $salt[1];
$encode_again_for_check = md5($hash."mypass");
  	if($pass == $encode_again_for_check){ 
    	echo "success, passwords are the same"; 
   } else {
      echo "wrong password";
}

 

Anything else here: http://wiki.whmcs.com/API:Get_Clients_Password

 

Second: the $db->query_first its from my db abstraction layer so make you one or just use mysql_query

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated