Forgot to change this too
This commit is contained in:
@@ -4,11 +4,11 @@ setJsonHeader();
|
|||||||
checkClientDatabaseVersion();
|
checkClientDatabaseVersion();
|
||||||
$conn = newConnection();
|
$conn = newConnection();
|
||||||
|
|
||||||
$postData = getPostData();
|
$post = getPostData();
|
||||||
$username = $postData['username'];
|
$username = $post['username'];
|
||||||
$password = $postData['password'];
|
$password = $post['password'];
|
||||||
$currentHighScore = $postData['currentHighScore'] ?? 0;
|
$currentHighScore = $post['currentHighScore'] ?? 0;
|
||||||
$loginType = $postData['loginType'] ?? '0';
|
$loginType = $post['loginType'] ?? '0';
|
||||||
|
|
||||||
$stmt = $conn->prepare("SELECT * FROM users WHERE username = ?");
|
$stmt = $conn->prepare("SELECT * FROM users WHERE username = ?");
|
||||||
$stmt->bind_param("s", $username);
|
$stmt->bind_param("s", $username);
|
||||||
|
|||||||
Reference in New Issue
Block a user