candeos
12-20-2007, 10:05 AM
Hello
I have an application that when you insert a user into it, it automatically used to insert that user into the vBulletin user table
When we updated to 3.0 , it stopped working. Here is the old code
$iUs = mysql_insert_id($objConn);
$time = time();
$md5Pass = md5($txtPassword);
$sSql = "INSERT INTO user (username, password, email, referrerid, nosessionhash, styleid, ";
$sSql .= "adminemail, cookieuser, daysprune, emailnotification, usertitle, joindate, usergroupid)";
$sSql .=" VALUES ('$txtUsername', '$md5Pass', '$txtUsername', '$iCusID', 1, 1, 1, 1, -1, 1, ";
$sSql .= "'Captain','$time', '$groupid')";
I know that the password changed to using salt. What changes do I need to make to get this to work?
Thanks
Dave
I have an application that when you insert a user into it, it automatically used to insert that user into the vBulletin user table
When we updated to 3.0 , it stopped working. Here is the old code
$iUs = mysql_insert_id($objConn);
$time = time();
$md5Pass = md5($txtPassword);
$sSql = "INSERT INTO user (username, password, email, referrerid, nosessionhash, styleid, ";
$sSql .= "adminemail, cookieuser, daysprune, emailnotification, usertitle, joindate, usergroupid)";
$sSql .=" VALUES ('$txtUsername', '$md5Pass', '$txtUsername', '$iCusID', 1, 1, 1, 1, -1, 1, ";
$sSql .= "'Captain','$time', '$groupid')";
I know that the password changed to using salt. What changes do I need to make to get this to work?
Thanks
Dave