From 05b99dfae408fa9ffcb36a4aa6746c0f1ccabd9c Mon Sep 17 00:00:00 2001 From: lopar Date: Sat, 16 Feb 2019 02:54:46 +0200 Subject: [PATCH] errors fix --- rememberpassword.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rememberpassword.php b/rememberpassword.php index 0ef9617..7b18c50 100644 --- a/rememberpassword.php +++ b/rememberpassword.php @@ -37,7 +37,7 @@ if ($login) { $allowChange = false; $changePassword = filter_input(INPUT_GET, 'change'); if ($changePassword) { - if (db::c()->query('SELECT 1 FROM `confirmpasswd` WHERE `hash` = "?s" AND `date` = "?s"', $changePassword, date('Y-m-d'))->getNumRows()) + if (db::c()->query('SELECT 1 FROM `confirmpasswd` WHERE `hash` = "?s" AND `date` < "?s"', $changePassword, date('Y-m-d'))->getNumRows()) $allowChange = true; else $statusMessage = 'Ошибка: ссылка устарела!'; }