MyBB Community Forums

Full Version: How MYBB validate username and password.
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi there
I am making a application and i am using login system in my application.
to check if user is filling correct information i need to check database if user and password match. I know how to connect to database and how to get data from database. I need to know how MYBB validate user input for username and password. i check and there is one line
$db->escape_string(my_strtolower($username));
is there anything else which mybb check before sending to database

thanks

is there any idea

anyone have idea. Still waiting for answer.
Moved to the correct area, though there are existing threads on how to do this in the tutorials section so I suggest searching the site.
I tried to find it bit could not find any answer.Please could you give me some links if you have
Thanks
Looks like the password starts line 166 of inc/datahandlers.user.php and the username is on line 64. Smile Could be way off but that looks like where it's handled.
Thanks a lot this is very helpful for me.
Please could you help me little more. After validate username and password i need to match password in database.
Please could you tell me which format it use for database.
Is it md5 or md5 +salt.
if it use salt what value it use for salt.
Again Thanks a lot for help.

For password i found this function validate_password_from_username($username, $password)

it do everything for
thanks a lot for help