Fixed reset password

This commit is contained in:
Joey Lai
2017-01-25 16:19:34 +01:00
parent ded314f4d6
commit 4c5ea08614
3 changed files with 30 additions and 1 deletions

View File

@@ -32,6 +32,22 @@ function getExistingEmail() {
}
function getResetEmail() {
$stmt = $GLOBALS["db"]->prepare("
SELECT
`email`
FROM
`user`
WHERE
`email` LIKE :email
");
$stmt->bindParam(":email", $_POST["forgotEmail"]);
$stmt->execute();
return $stmt->rowCount();
}
function registerAccount() {
$stmt = $GLOBALS["db"]->prepare("
INSERT INTO