mirror of
https://gitea.msk.dinamika-avia.ru/Constanta-Design/RRJClient.git
synced 2026-03-28 05:25:39 +03:00
fix: hex
This commit is contained in:
@@ -1,2 +1,2 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<AuthData Login="O5" Password="5555" InstructorName="" ClientName="Синицин И.И." AccessType="trainee"/>
|
<AuthData Login="O1" Password="b59c67bf196a4758191e42f76670ceba" InstructorName="" ClientName="Коровин А.В." AccessType="trainee"/>
|
||||||
File diff suppressed because it is too large
Load Diff
@@ -1,5 +1,5 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<ServerSettingsContainer>
|
<ServerSettingsContainer>
|
||||||
<ServerSettings Address="192.168.100.83" Port="6000" Language="RUS" AutoStart="0" DestPortMath="18003" LocalPortMath="18004" UseMathModel="1"/>
|
<ServerSettings Address="192.168.100.134" Port="6000" Language="RUS" AutoStart="0" DestPortMath="18003" LocalPortMath="18004" UseMathModel="1"/>
|
||||||
<VersionData Version="modify" isChangable="128"/>
|
<VersionData Version="base" isChangable="1"/>
|
||||||
</ServerSettingsContainer>
|
</ServerSettingsContainer>
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
@@ -1,2 +1,2 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<ClientNotify Code="DISABLE"/>
|
<ClientAutorization Login="O1" Password="b59c67bf196a4758191e42f76670ceba"/>
|
||||||
|
|||||||
@@ -1,6 +1,10 @@
|
|||||||
#include "entrywidget.h"
|
#include "entrywidget.h"
|
||||||
#include "ui_entrywidget.h"
|
#include "ui_entrywidget.h"
|
||||||
|
|
||||||
|
#include <bits/functional_hash.h>
|
||||||
|
|
||||||
|
#include <QCryptographicHash>
|
||||||
|
|
||||||
EntryWidget::EntryWidget(QWidget *parent) :
|
EntryWidget::EntryWidget(QWidget *parent) :
|
||||||
QWidget(parent),
|
QWidget(parent),
|
||||||
ui(new Ui::EntryWidget)
|
ui(new Ui::EntryWidget)
|
||||||
@@ -34,7 +38,9 @@ ClientAutorization* EntryWidget::getAuthData()
|
|||||||
QString username = ui->loginInputField->text();
|
QString username = ui->loginInputField->text();
|
||||||
QString password = ui->passwordInputField->text();
|
QString password = ui->passwordInputField->text();
|
||||||
data->Login = username;
|
data->Login = username;
|
||||||
data->Password = password;
|
|
||||||
|
QByteArray md5Hash = QCryptographicHash::hash(password.toUtf8(), QCryptographicHash::Md5).toHex();
|
||||||
|
data->Password = QString(md5Hash);
|
||||||
|
|
||||||
return data;
|
return data;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user