gui: made username and password hashed, and disabled unreliable ssl library usage (getting ssl context errors).

This commit is contained in:
Nick Bolton 2013-08-12 12:01:23 +00:00
parent 63487e565d
commit beab22e5b2
3 changed files with 6 additions and 6 deletions

View File

@ -106,7 +106,7 @@
<item>
<widget class="QLabel" name="m_pLabelPremium">
<property name="text">
<string>Please help us &lt;a href=&quot;https://synergy-foss.org/premium/register/?source=gui-notice&quot;&gt;fund this project&lt;/a&gt; if you like Synergy.</string>
<string>Please help us &lt;a href=&quot;http://synergy-foss.org/premium/register/?source=gui-notice&quot;&gt;fund this project&lt;/a&gt; if you like Synergy.</string>
</property>
<property name="openExternalLinks">
<bool>true</bool>

View File

@ -296,7 +296,7 @@
<item row="2" column="1">
<widget class="QLabel" name="m_pLabelForgotPassword">
<property name="text">
<string>&lt;a href=&quot;https://synergy-foss.org/premium/reset/?source=gui&quot;&gt;Forgot password&lt;/a&gt;</string>
<string>&lt;a href=&quot;http://synergy-foss.org/premium/reset/?source=gui&quot;&gt;Forgot password&lt;/a&gt;</string>
</property>
<property name="openExternalLinks">
<bool>true</bool>

View File

@ -27,8 +27,8 @@
#include <QNetworkReply>
//#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());