Authentication-Results: mail-b.sr.ht; dkim=none Received: from git.sr.ht (unknown [173.195.146.142]) by mail-b.sr.ht (Postfix) with ESMTPSA id 8B80211EE5E; Sat, 14 Jan 2023 20:14:30 +0000 (UTC) From: ~t00fy Date: Sat, 14 Jan 2023 20:08:40 +0000 Subject: [PATCH astra 1/1] Adding fix for connecting to a sapphire server Message-ID: <167372727006.25347.12957442346607503432-1@git.sr.ht> X-Mailer: git.sr.ht Reply-to: ~t00fy In-Reply-To: <167372727006.25347.12957442346607503432-0@git.sr.ht> To: ~redstrate/public-inbox@lists.sr.ht Cc: redstrate/public-inbox@lists.sr.ht Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 From: Toofy --- launcher/core/src/sapphirelauncher.cpp | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/launcher/core/src/sapphirelauncher.cpp b/launcher/core/src/sapph= irelauncher.cpp index f6ed125..1c7a3d2 100644 --- a/launcher/core/src/sapphirelauncher.cpp +++ b/launcher/core/src/sapphirelauncher.cpp @@ -39,10 +39,7 @@ void SapphireLauncher::login(const QString& lobbyUrl, cons= t LoginInformation& in =20 void SapphireLauncher::registerAccount(const QString& lobbyUrl, const LoginI= nformation& info) { QJsonObject data{{"username", info.username}, {"pass", info.password}}; - QUrl url; - url.setScheme("http"); - url.setHost(lobbyUrl); - url.setPath("/sapphire-api/lobby/createAccount"); + QUrl url(lobbyUrl + "/sapphire-api/lobby/login"); =20 QNetworkRequest request(url); request.setHeader(QNetworkRequest::ContentTypeHeader, "application/x-www= -form-urlencoded"); @@ -59,4 +56,4 @@ void SapphireLauncher::registerAccount(const QString& lobby= Url, const LoginInfor =20 window.launchGame(*info.settings, auth); }); -} \ No newline at end of file +} --=20 2.34.5