lost password
This commit is contained in:
parent
1ac6b9c297
commit
36ac843e0d
@ -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 = 'Ошибка: неверная ссылка!';
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user