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
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);

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

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.   Restore formatting

  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.

×
×
  • 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.