![]() |
Logging in on user database from oter location than forum
Hi,
i'm coding a website and i want to use the user database of my forum... so the users have to register one to use both... but i don't get how i have to fix they could login from my website... i don't get how the fix it with the md5 security vBulletin uses... It would also be great if they could register when they are on the website (not on the forum)... Can someone help me out? |
The "password" stored in the user-table is md5(concat(md5('password'), salt)).
So if you want to check if password bar for user foo is correct: [sql]SELECT userid, password=MD5(CONCAT(MD5('bar'), salt)) AS pwdcorrect FROM user WHERE username='foo'[/sql]
|
you're my angel today :)
|
hmm concat is a function of vB?
In which file is it so i can copy it ? |
CONCAT() is a mySQL function.
To concatenate strings in PHP you can use . PHP Code:
|
All times are GMT. The time now is 10:39 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:
|