Jump to content

[SOLVED] Bridging to vBulletin


cheechm

Recommended Posts

Hi,

I have a forum and an auction site.

Literally the users sign up at the vBulletin forum and they are automatically signed up to the Auction site.

Here is part of the auction site login script.:

if (isset($_POST['loginok'])||$_POST['islogin']=="yes") {
$userDetails = getSqlRow("SELECT * FROM probid_users WHERE username='".$_POST['username']."'");
$salt = getSqlRow("SELECT salt FROM probid_users WHERE username='".$_POST['username']."'");
if ($setts['account_mode_personal']==1) {
$account_mode_local = ($userDetails['payment_mode']==1) ? 2 : 1;
} else $account_mode_local = $setts['account_mode'];
if (substr($userDetails['password'],0,10)==substr(md5(md5($_POST['password']) . $salt),0,10)&&$_POST['password']!=""&&$_POST['username']!="") {

 

I can't however login in. It says incorrrect password. I have check all the data is in the table, including salt.

However I don't know if I have done this bit right:

substr(md5(md5($_POST['password']) . $salt)

 

I was told it should be like this:

$password_hash = md5(md5($password_text) . $user_salt);

 

What am I doing wrong?

Thanks

 

Link to comment
https://forums.phpfreaks.com/topic/71282-solved-bridging-to-vbulletin/
Share on other sites

Looking briefly..

 

$password_hash = md5(md5($password_text) . $user_salt);

 

Surely thats hashing the password twice, so in enhance, hashing a hash

 

Maybe thats the way it works..? If not, maybe something to look into because I've never known a hash hash

So maybe try

 

$password_hash = md5($password_text);

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.