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,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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user