From 38f28c3e087057460ef60818b8091911d96f504b Mon Sep 17 00:00:00 2001 From: Thies Mueller Date: Fri, 8 Jan 2021 16:13:50 +0100 Subject: [PATCH 1/2] add forgot password link --- login.php | 1 + 1 file changed, 1 insertion(+) diff --git a/login.php b/login.php index aa62402..a25cb68 100644 --- a/login.php +++ b/login.php @@ -45,5 +45,6 @@ Your password:
+forgot password -- 2.34.1 From 268c11c0d668f28e7988cc7423be72de078ab237 Mon Sep 17 00:00:00 2001 From: Thies Mueller Date: Fri, 8 Jan 2021 16:14:11 +0100 Subject: [PATCH 2/2] 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! + + -- 2.34.1