Forgot to change this too

This commit is contained in:
2025-07-06 16:26:55 -07:00
parent f9c974f7fd
commit ff0520ec32

View File

@@ -4,11 +4,11 @@ setJsonHeader();
checkClientDatabaseVersion();
$conn = newConnection();
$postData = getPostData();
$username = $postData['username'];
$password = $postData['password'];
$currentHighScore = $postData['currentHighScore'] ?? 0;
$loginType = $postData['loginType'] ?? '0';
$post = getPostData();
$username = $post['username'];
$password = $post['password'];
$currentHighScore = $post['currentHighScore'] ?? 0;
$loginType = $post['loginType'] ?? '0';
$stmt = $conn->prepare("SELECT * FROM users WHERE username = ?");
$stmt->bind_param("s", $username);