From 20c87472a6e10197eb4438d8e72168bfb6be6941 Mon Sep 17 00:00:00 2001 From: Jay Date: Thu, 3 Mar 2022 17:22:31 +0100 Subject: [PATCH] Fix mysql syntax --- src/pages/register.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pages/register.php b/src/pages/register.php index ecafa622..42e5fbb3 100644 --- a/src/pages/register.php +++ b/src/pages/register.php @@ -62,8 +62,8 @@ if (isset($_POST['email'], $_POST['password']) && !empty($_POST['planet'])) { ->query('UPDATE `users` SET `password` = "' . sha1($_POST['password']) . '", `password_reset_token` = NULL, - `password_reset_valid_until` = NULL, - WHERE `id` = ' . $user['id'] . ';'); + `password_reset_valid_until` = NULL + WHERE `id` = ' . $user['id'] . ';'); $page->messages[] = Page::success('Password has been successfully reset for ' . $_GET['password-reset'] . '.', 'Success'); } else {