From 268c11c0d668f28e7988cc7423be72de078ab237 Mon Sep 17 00:00:00 2001 From: Thies Mueller Date: Fri, 8 Jan 2021 16:14:11 +0100 Subject: [PATCH] initial touch. doesn't send out passwords. --- forgot.php | 43 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 forgot.php diff --git a/forgot.php b/forgot.php new file mode 100644 index 0000000..a4f1858 --- /dev/null +++ b/forgot.php @@ -0,0 +1,43 @@ +prepare("SELECT * FROM users WHERE email = :email"); + $result = $statement->execute(array('email' => $email)); + $user = $statement->fetch(); + + if ($user !== true ) { + die('successfull. check your inbox.'); + } else { + $errorMessage = "somethings wrong (maybe wrong email?)
"; + } + +} +?> + + + + Forgot Password + + + + + +
+Your E-Mail Adress:
+

+ + + + +
+i know my password again! + +