mirror of
https://bitbucket.org/Ioncannon/project-meteor-server.git
synced 2025-05-20 08:26:59 -04:00
database.php edited online with Bitbucket
This commit is contained in:
parent
c6307dde35
commit
b490cdf124
@ -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…
x
Reference in New Issue
Block a user