Added salting and no similar username

This commit is contained in:
Joey Lai
2017-01-18 14:46:32 +01:00
parent afcd048260
commit 0808d46d9e
4 changed files with 22 additions and 14 deletions

View File

@@ -3,11 +3,12 @@
function hashPassword() {
$stmt = $GLOBALS["db"]->prepare("
SELECT
`password`
`password`,
`userID`
FROM
`user`
WHERE
`username` = :username
`username` LIKE :username
");
$stmt->bindParam(":username", $_POST["uname"]);