mirror of
https://github.com/debauchee/barrier.git
synced 2024-11-27 10:38:48 +03:00
gui: made username and password hashed, and disabled unreliable ssl library usage (getting ssl context errors).
This commit is contained in:
parent
63487e565d
commit
beab22e5b2
@ -106,7 +106,7 @@
|
||||
<item>
|
||||
<widget class="QLabel" name="m_pLabelPremium">
|
||||
<property name="text">
|
||||
<string>Please help us <a href="https://synergy-foss.org/premium/register/?source=gui-notice">fund this project</a> if you like Synergy.</string>
|
||||
<string>Please help us <a href="http://synergy-foss.org/premium/register/?source=gui-notice">fund this project</a> if you like Synergy.</string>
|
||||
</property>
|
||||
<property name="openExternalLinks">
|
||||
<bool>true</bool>
|
||||
|
@ -296,7 +296,7 @@
|
||||
<item row="2" column="1">
|
||||
<widget class="QLabel" name="m_pLabelForgotPassword">
|
||||
<property name="text">
|
||||
<string><a href="https://synergy-foss.org/premium/reset/?source=gui">Forgot password</a></string>
|
||||
<string><a href="http://synergy-foss.org/premium/reset/?source=gui">Forgot password</a></string>
|
||||
</property>
|
||||
<property name="openExternalLinks">
|
||||
<bool>true</bool>
|
||||
|
@ -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());
|
||||
|
Loading…
Reference in New Issue
Block a user