summaryrefslogtreecommitdiffstats
path: root/logic/auth
diff options
context:
space:
mode:
authorSky <git@bunnies.cc>2013-12-13 14:58:11 +0000
committerSky <git@bunnies.cc>2013-12-13 14:58:11 +0000
commit979946b7bb2cec808198f9194169ea08cce8bb00 (patch)
tree76db4173a0f896b7accfcdf8bb8a7dd143525922 /logic/auth
parent808ca763632090abdab5a2451c95dbb0f4319126 (diff)
downloadMultiMC-979946b7bb2cec808198f9194169ea08cce8bb00.tar
MultiMC-979946b7bb2cec808198f9194169ea08cce8bb00.tar.gz
MultiMC-979946b7bb2cec808198f9194169ea08cce8bb00.tar.lz
MultiMC-979946b7bb2cec808198f9194169ea08cce8bb00.tar.xz
MultiMC-979946b7bb2cec808198f9194169ea08cce8bb00.zip
First sweep moving URLs to a constants file
Diffstat (limited to 'logic/auth')
-rw-r--r--logic/auth/YggdrasilTask.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/logic/auth/YggdrasilTask.cpp b/logic/auth/YggdrasilTask.cpp
index 45155058..088e1fc0 100644
--- a/logic/auth/YggdrasilTask.cpp
+++ b/logic/auth/YggdrasilTask.cpp
@@ -24,6 +24,7 @@
#include <MultiMC.h>
#include <logic/auth/MojangAccount.h>
+#include <logic/net/URLConstants.h>
YggdrasilTask::YggdrasilTask(MojangAccount *account, QObject *parent)
: Task(parent), m_account(account)
@@ -38,7 +39,7 @@ void YggdrasilTask::executeTask()
QJsonDocument doc(getRequestContent());
auto worker = MMC->qnam();
- QUrl reqUrl("https://authserver.mojang.com/" + getEndpoint());
+ QUrl reqUrl("https://" + URLConstants::AUTH_BASE + getEndpoint());
QNetworkRequest netRequest(reqUrl);
netRequest.setHeader(QNetworkRequest::ContentTypeHeader, "application/json");