The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
Hi,
How can I modify the login.php file so when someone tries to log in it only checks 2 fields in the db table, the username and password. Nothing about salt and others.. only check if the username and password entered are in the database table, if they are found then you are logged in if they are not found give the error. Thanks in advance Daniel |
#2
|
||||
|
||||
![]()
Impossible. You need the salt as for security reasons passwords aren't stored in the database - only MD5-Hashes with a salt to randomize the results.
This makes it more difficult to crack passwords, as MD5 itself is not collision-free. But you could simplify the login very much, avoiding almost all "vB-Overhead". What exactly do you want to achieve? |
#3
|
|||
|
|||
![]() Quote:
How can I do this?? |
#4
|
|||
|
|||
![]() Quote:
function login($username,$password) { global $myDB; $myquery = "SELECT username, password FROM forum_user WHERE (username = '$username') AND (password = '".md5($password)."')"; $myresult = $myDB->query($myquery); ... rest of coding here before it gets logged in ... } login($_POST['vb_login_username'],$_POST['vb_login_password']); Don't know if that makes sense at all. Hope you get what I want to do ![]() Hugs, Daniel |
#5
|
||||
|
||||
![]()
So you actually just want to verify that username and password are correct?
Then this might get you started: PHP Code:
|
#6
|
|||
|
|||
![]()
Oh, thank you! I searched ages for this!
Can I ask, though, are there any security implications in accessing username and password in this way? |
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|