News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

Convert from php-login-script

Started by amandeep1, August 16, 2010, 08:53:57 PM

Previous topic - Next topic

amandeep1

I usedphp-login-script php script before. (google it )

So now i am attempting to convert all my previous members to the new smf forum

so the first thing i did was to edit the LogInOut.php to include the php login script encryption

I added the following code
elseif (strlen($user_settings['passwd']) == 49)
{
// phpfreelogin script
        $other_passwords[] =  substr(md5(uniqid(rand(), true)), 0, 9) . sha1($_POST['passwrd'] . substr(md5(uniqid(rand(), true)), 0, 9));
}


Now when i try to log into a account that was converted. It recognizes the password and displayed this message

QuotePassword security has recently been upgraded. Please enter your password again.

i attempt to login again and it shows password incorrect.

If i now login once again for the third time the same security message comes up once again and the process repeats.

If i click forgot password the system sends a message to the correct email and i am able to reset my password and then user can perfectly log in because the passwd field is converted into smf hash.

So my problem is, smf recognizes the password but fails to update it to the smf hash. Any help?


Advertisement: