Merged marijn

This commit is contained in:
Joey Lai
2017-01-25 15:53:44 +01:00
parent 0b035c0583
commit ded314f4d6
2 changed files with 4 additions and 2 deletions

View File

@@ -6,6 +6,7 @@
include_once("../queries/login.php"); include_once("../queries/login.php");
include_once("../queries/checkInput.php"); include_once("../queries/checkInput.php");
include_once("../queries/emailconfirm.php"); include_once("../queries/emailconfirm.php");
include_once("../queries/requestpassword.php");
?> ?>
<body> <body>
<?php <?php
@@ -33,7 +34,8 @@
break; break;
case "reset": case "reset":
try { try {
validateEmail($_POST["forgotEmail"]); // validateEmail($_POST["forgotEmail"]);
sendPasswordRecovery($_POST["forgotEmail"]);
} catch (emailException $e){ } catch (emailException $e){
$resetErr = $e->getMessage(); $resetErr = $e->getMessage();
echo "<script> echo "<script>

View File

@@ -12,7 +12,7 @@ function sendPasswordRecovery(string $email) {
WHERE WHERE
`email` = :email `email` = :email
"); ");
$stmt->bindParm("email", $email); $stmt->bindParam(":email", $email);
$stmt->execute(); $stmt->execute();
if (!$stmt->rowCount()) { if (!$stmt->rowCount()) {
// TODO: Just stop. // TODO: Just stop.