SMF passwords

Started by renlok, October 29, 2006, 09:31:23 AM

Previous topic - Next topic

renlok

You know the user passwords are stored as a string on nonsense, how would i got round turning what somone typed as there password to this?

Im trying to make a different login for my SMF board.
WeLink Directory
How Do I? - Get help with anything.
WeBid - Free auction script.

SleePy

I wouldn't recommend changing the login type used on your smf board.. To much work to do such a thing and would cause current users to not login..

SMF 1.1 uses a sha1 if i remember right..

$sha_passwd = sha1(strtolower($user_settings['memberName']) . $_REQUEST['passwrd']);


SMF 1.0 uses MD5..

Jeremy D ~ Site Team / SMF Developer ~ GitHub Profile ~ Join us on IRC @ Libera.chat/#smf ~ Support the SMF Support team!

renlok

well its more like i want to make a login for another site which uses the login details from my SMF database and i use RC3 whats would that use?
WeLink Directory
How Do I? - Get help with anything.
WeBid - Free auction script.

renlok

i found
$user_settings['passwordSalt'] = substr(md5(rand()), 0, 4);
updateMemberData($ID_MEMBER, array('passwordSalt' => '\'' . $user_settings['passwordSalt'] . '\''));


is that what shanges the password?

my normal code i would use would be is something like $pass = $_POST['pass'] how would i then change ['pass'] to the string thinggy RC3 stores?
WeLink Directory
How Do I? - Get help with anything.
WeBid - Free auction script.

renlok

WeLink Directory
How Do I? - Get help with anything.
WeBid - Free auction script.

kL

Quote from: renlok on October 29, 2006, 04:31:28 PM
i found
$user_settings['passwordSalt'] = substr(md5(rand()), 0, 4);
updateMemberData($ID_MEMBER, array('passwordSalt' => '\'' . $user_settings['passwordSalt'] . '\''));


is that what shanges the password?

my normal code i would use would be is something like $pass = $_POST['pass'] how would i then change ['pass'] to the string thinggy RC3 stores?
you dont want to create your own login file. you can use smfs. just make it redirect to where you want to go to.

Advertisement: