From 4836d0d14aaa146b25800fda2aab047f05e27063 Mon Sep 17 00:00:00 2001 From: Miguel Ribeiro Date: Sun, 26 May 2024 11:06:58 +0200 Subject: [PATCH] fix: password reset --- passwordreset.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/passwordreset.php b/passwordreset.php index 2f1c6ba60..7fd3a4959 100644 --- a/passwordreset.php +++ b/passwordreset.php @@ -41,7 +41,7 @@ $passwordsMismatch = false; $hideForm = false; -if (isset($_POST['email']) && $_POST['email'] != "" && isset($_GET['submit']) && $_GET['submit'] && !(isset($_GET['token']))) { +if (isset($_POST['email']) && $_POST['email'] != "" && isset($_GET['submit']) && $_GET['submit'] && !(isset($_GET['token'])) && !(isset($_POST['token']))) { $requestMode = true; $resetMode = false; $email = $_POST['email'];