Fix mysql syntax

This commit is contained in:
Jay 2022-03-03 17:22:31 +01:00
parent b1f62e829b
commit 20c87472a6

View file

@ -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 {