errors fix
This commit is contained in:
parent
985f1739ae
commit
05b99dfae4
@ -37,7 +37,7 @@ if ($login) {
|
|||||||
$allowChange = false;
|
$allowChange = false;
|
||||||
$changePassword = filter_input(INPUT_GET, 'change');
|
$changePassword = filter_input(INPUT_GET, 'change');
|
||||||
if ($changePassword) {
|
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;
|
$allowChange = true;
|
||||||
else $statusMessage = 'Ошибка: ссылка устарела!';
|
else $statusMessage = 'Ошибка: ссылка устарела!';
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user