diff --git a/database/loginAccount.php b/database/loginAccount.php index 5e7107c..973a909 100644 --- a/database/loginAccount.php +++ b/database/loginAccount.php @@ -40,12 +40,10 @@ if ($currentHighScore > $user['highScore']) { $user['highScore'] = $currentHighScore; } -$data = ["session" => $token]; +$data = ["session" => $tokenm, "username" => $user['username'], "userid" => $id]; if ($loginType === "0") { $data += [ - "username" => $user['username'], - "userid" => $id, "highscore" => (string)$user['highScore'], "icon" => (int)$user['icon'], "overlay" => (int)$user['overlay'], @@ -58,11 +56,6 @@ if ($loginType === "0") { "birdColor" => json_encode((string)$user['birdColor']), "overlayColor" => json_encode((string)$user['overlayColor']) ]; -} elseif ($loginType === "1") { - $data += [ - "username" => $user['username'], - "id" => $id - ]; } echo encrypt(json_encode(["success" => true, "data" => $data]));