01-24-2008, 11:51 AM
Okay, so basically what im looking for is how MyBB authenticates users when they login in. Specifically how it deals with the passwords. Okay, first off, I know MyBB encrypts passwords using the md5 function, and also the password salt comes into play somehow. But that's about all I know lol.
Im basically looking to take a password from a login form and compare that to the user's passoword in MyBB. If the passwords match, then blah blah blah, you know the rest.
So im looking for something simple like:
Also, does does the my_post_key hidden input field in the login form have anything to do with it?
So, problem is, how does MyBB forumlate/check the password? Thanks in advance.
Take care.
Im basically looking to take a password from a login form and compare that to the user's passoword in MyBB. If the passwords match, then blah blah blah, you know the rest.
So im looking for something simple like:
PHP Code:
$password_check_query = "SELECT * FROM ".MYBB_PREFIX."users WHERE username='".mysql_real_escape_string(htmlentities($_POST['login_username'], ENT_QUOTES, 'UTF-8'))."' AND password='//STUCK HERE//'";
Also, does does the my_post_key hidden input field in the login form have anything to do with it?
Code:
<input type="hidden" name="my_post_key" value="-------------------------------" />So, problem is, how does MyBB forumlate/check the password? Thanks in advance.
Take care.