prepare("SELECT * FROM system_users WHERE user_password_reset_token = ? AND user_password_reset_expires > UNIX_TIMESTAMP()"); $stmt->bind_param("s", $token); $stmt->execute(); $result = $stmt->get_result(); } elseif (isset($_SESSION['user']['user_uuid'])) { $user_uuid = $_SESSION['user']['user_uuid']; $stmt = $GLOBALS['conn']->prepare("SELECT * FROM system_users WHERE user_uuid = ?"); $stmt->bind_param("s", $user_uuid); $stmt->execute(); $result = $stmt->get_result(); } if ($result->num_rows == 1) { $tokenfound = true; $user_data = $result->fetch_assoc(); } else { addLoginAttempts(); } if (checkLoginAttempts() > 20) { header('Location: /login/'); exit; } ?>
Your password was set successfully. Use the button below to proceed to the login page.
Something went wrong in changing your password. Please contact support!
Must be at least 12 characters.