Hey Guys,
i have found this module to bridge my vBulletin registration with my CoreDB and its really making an account and all is pretty ggod till the moment i'am going to login with the new account and then i get an error about bad information..
Here's the script: [I guess its SHA problem...]
Code:
//change this for your mangos/trinity servers info
mysql_connect("IP","root","pass");
$sha_pass_hash = sha1(mysql_real_escape_string(strtoupper($vbulletin->userinfo['username'])) . ":" . mysql_real_escape_string(strtoupper($vbulletin->GPC['password'])));
//change database if needed. default: mangos_realmd
mysql_query("INSERT INTO realmd.account(username,sha_pass_hash, email, expansion) VALUES('".$vbulletin->GPC['username']."', '$sha_pass_hash' ,'".$vbulletin->GPC['email']."',2)");
Thanks