diff --git a/src/pages/register.php b/src/pages/register.php index 7f1fd9a6..ecafa622 100644 --- a/src/pages/register.php +++ b/src/pages/register.php @@ -57,7 +57,7 @@ if (isset($_POST['email'], $_POST['password']) && !empty($_POST['planet'])) { ->fetch(); if ($user) { - if (time() <= $user['password_reset_valid_until']) { + if (time() > $user['password_reset_valid_until']) { $database ->query('UPDATE `users` SET `password` = "' . sha1($_POST['password']) . '",