Quote:
Originally Posted by Dismounted
Look inside the function and see what it does.
|
I went through the function. There are some variables used like $vbulletin->userinfo['userid'].
Can you help me to set these variables?
So far, I have been able to verify username and password using my own function. Here's how I have verifed:
Code:
1. Get userid, username, password, salt from Database for the given username.
2. Check the given password
md5( md5($given_password) . $salt) with password in database.
After this, I am trying to create session. I cannot directly use vbulletin's login.php script because I have to use AJAX login.
I think I have missed some steps before using process_new_login(). Would you please help me in finding the missing steps?