Fix Microsoft account provider

This commit is contained in:
Dāvis Mosāns
2021-12-10 05:22:44 +02:00
parent 92e1a0fa08
commit 663e6a313c
7 changed files with 39 additions and 4 deletions

View File

@@ -33,6 +33,7 @@
#include "flows/MojangRefresh.h"
#include "flows/MojangLogin.h"
#include "AuthProviders.h"
MinecraftAccountPtr MinecraftAccount::loadFromJsonV2(const QJsonObject& json) {
MinecraftAccountPtr account(new MinecraftAccount());
@@ -63,6 +64,7 @@ MinecraftAccountPtr MinecraftAccount::createBlankMSA()
{
MinecraftAccountPtr account(new MinecraftAccount());
account->data.type = AccountType::MSA;
account->setProvider(AuthProviders::lookup("MSA"));
return account;
}