Fatal error: Table 'battles.confirmpasswd' doesn't exist;
This commit is contained in:
parent
2af76074bb
commit
32f3b2fc67
@ -66,7 +66,7 @@ if ($newPassword && $hashCheck) {
|
|||||||
$query = $query->fetch_assoc();
|
$query = $query->fetch_assoc();
|
||||||
$passwordHashed = password_hash($newPassword, PASSWORD_DEFAULT);
|
$passwordHashed = password_hash($newPassword, PASSWORD_DEFAULT);
|
||||||
db::c()->query('UPDATE users SET pass = "?s" WHERE login = "?s"', $passwordHashed, $query['login']);
|
db::c()->query('UPDATE users SET pass = "?s" WHERE login = "?s"', $passwordHashed, $query['login']);
|
||||||
db::c()->query('DELETE FROM confirmpasswd WHERE hash = "?s"', $hashCheck);
|
db::c()->query('DELETE FROM users_recovery WHERE hash = "?s"', $hashCheck);
|
||||||
$statusMessage = OK_PASSWORD_CHANGED;
|
$statusMessage = OK_PASSWORD_CHANGED;
|
||||||
} else {
|
} else {
|
||||||
$statusMessage = ERROR_WRONG_HASH;
|
$statusMessage = ERROR_WRONG_HASH;
|
||||||
|
Loading…
Reference in New Issue
Block a user