diff --git a/src/gui/src/WebClient.cpp b/src/gui/src/WebClient.cpp index f9ae1843..6de6d9ca 100644 --- a/src/gui/src/WebClient.cpp +++ b/src/gui/src/WebClient.cpp @@ -34,8 +34,7 @@ int WebClient::getEdition( QString responseJson; int edition = Unknown; try { - QStringList args("--login-auth"); - responseJson = request(email, password, args); + responseJson = request(email, password); } catch (std::exception& e) { @@ -91,9 +90,9 @@ int WebClient::getEdition( QString WebClient::request( const QString& email, - const QString& password, - QStringList& args) + const QString& password) { + QStringList args("--login-auth"); // hash password in case it contains interesting chars. QString credentials(email + ":" + hash(password) + "\n"); return m_CoreInterface.run(args, credentials); diff --git a/src/gui/src/WebClient.h b/src/gui/src/WebClient.h index 7eecc845..84e2f744 100644 --- a/src/gui/src/WebClient.h +++ b/src/gui/src/WebClient.h @@ -19,7 +19,6 @@ #define WEBCLIENT_H #include -#include #include #include "CoreInterface.h" @@ -45,8 +44,7 @@ signals: private: QString request(const QString& email, - const QString& password, - QStringList& args); + const QString& password); private: QString m_Email;