fixed QCryptographicHash not included

This commit is contained in:
Zakhar Afonin
2020-05-08 21:15:22 +03:00
parent 6ede3c13b2
commit 4cff4a6089

View File

@@ -3,6 +3,7 @@
#include <QJsonArray>
#include <QJsonDocument>
#include <QStringList>
#include <QCryptographicHash>
QString AuthSession::serializeUserProperties()
{
@@ -14,7 +15,6 @@ QString AuthSession::serializeUserProperties()
}
QJsonDocument value(userAttrs);
return value.toJson(QJsonDocument::Compact);
}
bool AuthSession::MakeOffline(QString offline_playername)
@@ -29,7 +29,7 @@ bool AuthSession::MakeOffline(QString offline_playername)
access_token = "ff64ff64ff64ff64ff64ff64ff64ff64";
// TODO: Fetch actual UUID's from Mojang API so they match with real ones
uuid = QString(QCryptographicHash::hash(offline_playername.toLocal8Bit(), QCryptographicHash::Md5).toHex());
player_name = offline_playername;
status = PlayableOffline;
return true;