From 4cff4a6089eb72f5cf4501d0b0f59186895e0fc8 Mon Sep 17 00:00:00 2001 From: Zakhar Afonin Date: Fri, 8 May 2020 21:15:22 +0300 Subject: [PATCH] fixed QCryptographicHash not included --- api/logic/minecraft/auth/AuthSession.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/api/logic/minecraft/auth/AuthSession.cpp b/api/logic/minecraft/auth/AuthSession.cpp index 4d54a59c..0a0c5735 100644 --- a/api/logic/minecraft/auth/AuthSession.cpp +++ b/api/logic/minecraft/auth/AuthSession.cpp @@ -3,6 +3,7 @@ #include #include #include +#include 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;