![]() |
Checking user and pass externally.
Hello, i'm working on a system where a player in an online game (counterstrike) can link they're online game account to their forum account.
I can do everything else but the linking PHP code. What I want to do is make an external PHP page that receives the queries from the game server. It receives the players input, their forum user name and password. In the external PHP page, I want to use the user name and password given and check it against the MySQL tables for vBulletin. I tried MD5 hashing the raw password from the query, but it is different from the MD5 in the database. Is there some other type of hashing that vBulletin uses? A snippit of code would be great! This is what I have now, And I always get 0 rows returned because the passwords are differet.... (I know I am entering the correct password ;)) PHP Code:
|
You might want to remove your database info from the code :)
As for your error check this line of code. PHP Code:
|
Quote:
|
Oh,
vBulletin uses a salt value on top of their password. I think passwords are encrypted like this (Don't quote me on this though). md5($password.$salt); The salt value is stored in the user table. |
Quote:
Does anyone else happen to know? It seems like vBulletin uses a Javascript code to hash it's passwords, but the code is very jumbled up and hard to read. I could be wrong though. |
that's how it's done...
Line 144 functions_login.php Code:
md5($md5password . $vbulletin->userinfo['salt']) |
Try this (untested) ;
PHP Code:
|
Quote:
|
All times are GMT. The time now is 08:50 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|