lost password

This commit is contained in:
lopar 2019-02-16 02:50:07 +02:00
parent 1ac6b9c297
commit 36ac843e0d

View File

@ -48,7 +48,7 @@ if (!empty($_POST['newpasswd']) AND !empty($_POST['hashcheck'])) {
$passwordHashed = password_hash($_POST['newpasswd'], PASSWORD_DEFAULT);
db::c()->query('UPDATE `users` SET `pass` = "?s" WHERE `login` = "?s"', $passwordHashed, $query['login']);
db::c()->query('DELETE FROM `confirmpasswd` WHERE `hash` = "?s"', $_POST['hashcheck']);
else $statusMessage = 'Пароль изменен!';
$statusMessage = 'Пароль изменен!';
} else $statusMessage = 'Ошибка: неверная ссылка!';
}