Kevin prototype #133

Merged
11319801 merged 28 commits from kevin-prototype into master 2017-01-26 13:29:43 +01:00
2 changed files with 4 additions and 2 deletions
Showing only changes of commit ded314f4d6 - Show all commits

View File

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

View File

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