Fix mysql syntax
This commit is contained in:
parent
b1f62e829b
commit
20c87472a6
1 changed files with 2 additions and 2 deletions
|
@ -62,8 +62,8 @@ if (isset($_POST['email'], $_POST['password']) && !empty($_POST['planet'])) {
|
||||||
->query('UPDATE `users`
|
->query('UPDATE `users`
|
||||||
SET `password` = "' . sha1($_POST['password']) . '",
|
SET `password` = "' . sha1($_POST['password']) . '",
|
||||||
`password_reset_token` = NULL,
|
`password_reset_token` = NULL,
|
||||||
`password_reset_valid_until` = NULL,
|
`password_reset_valid_until` = NULL
|
||||||
WHERE `id` = ' . $user['id'] . ';');
|
WHERE `id` = ' . $user['id'] . ';');
|
||||||
|
|
||||||
$page->messages[] = Page::success('Password has been successfully reset for <strong>' . $_GET['password-reset'] . '</strong>.', 'Success');
|
$page->messages[] = Page::success('Password has been successfully reset for <strong>' . $_GET['password-reset'] . '</strong>.', 'Success');
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in a new issue