mirror of
https://bitbucket.org/Ioncannon/project-meteor-server.git
synced 2025-04-24 13:47:46 +00:00
Merged in dude22072/ffxiv-classic-server-1/dude22072/databasephp-edited-online-with-bitbucket-1492196780169 (pull request #42)
Tells user incorrect username/password instead of "VerifyUser failed."
This commit is contained in:
commit
5c350e4ffa
2 changed files with 4 additions and 4 deletions
|
@ -48,7 +48,7 @@ function VerifyUser($dataConnection, $username, $password)
|
|||
$statement->bind_result($id, $storedPasshash, $salt);
|
||||
if(!$statement->fetch())
|
||||
{
|
||||
throw new Exception(__FUNCTION__ . " failed.");
|
||||
throw new Exception("Incorrect username.");
|
||||
}
|
||||
|
||||
$saltedPassword = $password . $salt;
|
||||
|
@ -56,7 +56,7 @@ function VerifyUser($dataConnection, $username, $password)
|
|||
|
||||
if($hashedPassword !== $storedPasshash)
|
||||
{
|
||||
throw new Exception(__FUNCTION__ . " failed.");
|
||||
throw new Exception("Incorrect password.");
|
||||
}
|
||||
|
||||
return $id;
|
||||
|
|
|
@ -48,7 +48,7 @@ function VerifyUser($dataConnection, $username, $password)
|
|||
$statement->bind_result($id, $storedPasshash, $salt);
|
||||
if(!$statement->fetch())
|
||||
{
|
||||
throw new Exception(__FUNCTION__ . " failed.");
|
||||
throw new Exception("Incorrect username.");
|
||||
}
|
||||
|
||||
$saltedPassword = $password . $salt;
|
||||
|
@ -56,7 +56,7 @@ function VerifyUser($dataConnection, $username, $password)
|
|||
|
||||
if($hashedPassword !== $storedPasshash)
|
||||
{
|
||||
throw new Exception(__FUNCTION__ . " failed.");
|
||||
throw new Exception("Incorrect password.");
|
||||
}
|
||||
|
||||
return $id;
|
||||
|
|
Loading…
Add table
Reference in a new issue