This commit is contained in:
semenov
2025-10-29 11:26:03 +03:00
parent a4d4709118
commit b706de2961
6 changed files with 2368 additions and 2364 deletions

View File

@@ -1,6 +1,10 @@
#include "entrywidget.h"
#include "ui_entrywidget.h"
#include <bits/functional_hash.h>
#include <QCryptographicHash>
EntryWidget::EntryWidget(QWidget *parent) :
QWidget(parent),
ui(new Ui::EntryWidget)
@@ -34,7 +38,9 @@ ClientAutorization* EntryWidget::getAuthData()
QString username = ui->loginInputField->text();
QString password = ui->passwordInputField->text();
data->Login = username;
data->Password = password;
QByteArray md5Hash = QCryptographicHash::hash(password.toUtf8(), QCryptographicHash::Md5).toHex();
data->Password = QString(md5Hash);
return data;
}