From beab22e5b2f612b2f84ed6a0a77980e6fff5342c Mon Sep 17 00:00:00 2001 From: Nick Bolton Date: Mon, 12 Aug 2013 12:01:23 +0000 Subject: [PATCH] gui: made username and password hashed, and disabled unreliable ssl library usage (getting ssl context errors). --- src/gui/res/MainWindowBase.ui | 2 +- src/gui/res/SetupWizardBase.ui | 2 +- src/gui/src/SetupWizard.cpp | 8 ++++---- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/gui/res/MainWindowBase.ui b/src/gui/res/MainWindowBase.ui index 05680364..ecb8b73f 100644 --- a/src/gui/res/MainWindowBase.ui +++ b/src/gui/res/MainWindowBase.ui @@ -106,7 +106,7 @@ - Please help us <a href="https://synergy-foss.org/premium/register/?source=gui-notice">fund this project</a> if you like Synergy. + Please help us <a href="http://synergy-foss.org/premium/register/?source=gui-notice">fund this project</a> if you like Synergy. true diff --git a/src/gui/res/SetupWizardBase.ui b/src/gui/res/SetupWizardBase.ui index 222827e4..fc51689b 100644 --- a/src/gui/res/SetupWizardBase.ui +++ b/src/gui/res/SetupWizardBase.ui @@ -296,7 +296,7 @@ - <a href="https://synergy-foss.org/premium/reset/?source=gui">Forgot password</a> + <a href="http://synergy-foss.org/premium/reset/?source=gui">Forgot password</a> true diff --git a/src/gui/src/SetupWizard.cpp b/src/gui/src/SetupWizard.cpp index dc2e19ca..eabca296 100644 --- a/src/gui/src/SetupWizard.cpp +++ b/src/gui/src/SetupWizard.cpp @@ -27,8 +27,8 @@ #include //#define PREMIUM_AUTH_URL "http://localhost/synergy/premium/json/auth/" -#define PREMIUM_AUTH_URL "https://synergy-foss.org/premium/json/auth/" -#define PREMIUM_REGISTER_URL "https://synergy-foss.org/premium/register/?source=gui-wizard" +#define PREMIUM_AUTH_URL "http://synergy-foss.org/premium/json/auth/" +#define PREMIUM_REGISTER_URL "http://synergy-foss.org/premium/register/?source=gui-wizard" SetupWizard::SetupWizard(MainWindow& mainWindow, bool startMain) : m_MainWindow(mainWindow), @@ -282,8 +282,8 @@ void SetupWizard::on_m_pRadioButtonPremiumLogin_toggled(bool checked) bool SetupWizard::isPremiumLoginValid(QMessageBox& message) { - QString email = m_pLineEditPremiumEmail->text(); - QString password = m_pLineEditPremiumPassword->text(); + QString email = hash(m_pLineEditPremiumEmail->text()); + QString password = hash(m_pLineEditPremiumPassword->text()); QString requestJson = "{\"email\":\"" + email + "\",\"password\":\"" + password + "\"}"; QByteArray requestData(requestJson.toStdString().c_str());