Merged marijn
This commit is contained in:
@@ -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>
|
||||||
|
|||||||
@@ -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.
|
||||||
|
|||||||
Reference in New Issue
Block a user