From 0beb88760b4c258b89daf5791069dc885c0c27aa Mon Sep 17 00:00:00 2001 From: Tannin Date: Sun, 19 May 2013 11:36:36 +0200 Subject: - 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 --- src/nxmaccessmanager.cpp | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'src/nxmaccessmanager.cpp') 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())); -- cgit v1.3.1