summaryrefslogtreecommitdiff
path: root/src/nxmaccessmanager.cpp
diff options
context:
space:
mode:
authorTannin <devnull@localhost>2013-05-19 11:36:36 +0200
committerTannin <devnull@localhost>2013-05-19 11:36:36 +0200
commit0beb88760b4c258b89daf5791069dc885c0c27aa (patch)
treee86596d032ef4bc6ba7f2ce5823becd42adcbaca /src/nxmaccessmanager.cpp
parent4fbfc9aa54ed4499f54eb7b3cd942337f6b49e58 (diff)
- added hook for GetModuleFileName
- downloads are now identifiable by ID - fixed a bug with the multi-select categories list - fixed a problem with the nexus-login code breaking support for certain passwords - fixed a bug where detection of archive invalidation didn't work correctly - fixed ncc plugin trying to handle archives that aren't actually fomods
Diffstat (limited to 'src/nxmaccessmanager.cpp')
-rw-r--r--src/nxmaccessmanager.cpp9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/nxmaccessmanager.cpp b/src/nxmaccessmanager.cpp
index 0f9f0209..dd05116d 100644
--- a/src/nxmaccessmanager.cpp
+++ b/src/nxmaccessmanager.cpp
@@ -95,10 +95,15 @@ void NXMAccessManager::login(const QString &username, const QString &password)
void NXMAccessManager::pageLogin()
{
- QString requestString = QString("http://gatekeeper.nexusmods.com/Sessions/?Login&username=%2&password=%3").arg(m_Username).arg(m_Password);
+ QString requestString = QString("http://gatekeeper.nexusmods.com/Sessions/?Login");
+ QUrl postData;
+ postData.addQueryItem("username", m_Username);
+ postData.addQueryItem("password", m_Password);
QNetworkRequest request(requestString);
- m_LoginReply = get(request);
+ request.setHeader(QNetworkRequest::ContentTypeHeader, "application/x-www-form-urlencoded");
+
+ m_LoginReply = post(request, postData.encodedQuery());
m_LoginTimeout.start();
connect(m_LoginReply, SIGNAL(finished()), this, SLOT(loginFinished()));