mirror of
https://github.com/UltimMC/Launcher.git
synced 2025-12-24 20:34:59 +00:00
fixed QCryptographicHash not included
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user