View Single Post
  #25  
Old 10-24-2009, 01:25 PM
exdiogene exdiogene is offline
Member
 
Join Date: Oct 2009
Posts: 84
Credits: 8,305
exdiogene
Default RE: MyBB intergration

Well we need to make it take the username and pass from the Mybb_users tbale instead of Adopt_users table. We then need it to take the salt from the database where the UID = the one we want. Then it needs to add the salt to the password we enter, and encode it in MD5. Then it matches that to the Password string in the Mybb_users table :D

So, Im guessing in login.php:

This:
PHP Code:
$password md5($password); 

should become this:
PHP Code:
$salt "SELECT salt FROM mybb_users WHERE username = '$username'";
$password md5($salt.($password)); 
Reply With Quote