The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
LowerCase
Hey I made a script to check the username + password
most important line is: Code:
$result = mysql_fetch_array( mysql_query("SELECT * FROM `vb_user` WHERE username='$name' AND password='$pass'",$db) ); Code:
user:Username pass:password Code:
user:username pass:password it depends on how the user registered... if he registered with a uppercase it wont work if i check with lowercase, and if he registered with a lowercase it wont work if I check with uppercase. |
#2
|
|||
|
|||
I presume vb_user is the vBulletin User table correct?
If so your query won't return no matches because you will first have to hash the password so you can compare them. Here is a quick outline of what you need to do:
|
#3
|
|||
|
|||
There are a few solutions to this:
- Force both to lowercase - Use LIKE instead of = (WHERE username LIKE '$name') Edit: In contrary to the previous post, passwords are case-sensitive (the stored hash not really case-sensitive), usernames can be handle case-insensitive. |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|