2021-12-04 00:18:05 +00:00
|
|
|
#include "Mojang.h"
|
|
|
|
|
|
|
|
#include "minecraft/auth/steps/GetSkinStep.h"
|
2023-08-02 17:35:35 +01:00
|
|
|
#include "minecraft/auth/steps/MigrationEligibilityStep.h"
|
|
|
|
#include "minecraft/auth/steps/MinecraftProfileStepMojang.h"
|
|
|
|
#include "minecraft/auth/steps/YggdrasilStep.h"
|
2021-12-04 00:18:05 +00:00
|
|
|
|
2023-08-02 17:35:35 +01:00
|
|
|
MojangRefresh::MojangRefresh(AccountData* data, QObject* parent) : AuthFlow(data, parent)
|
|
|
|
{
|
2023-01-24 19:52:09 +00:00
|
|
|
m_steps.append(makeShared<YggdrasilStep>(m_data, QString()));
|
|
|
|
m_steps.append(makeShared<MinecraftProfileStepMojang>(m_data));
|
|
|
|
m_steps.append(makeShared<MigrationEligibilityStep>(m_data));
|
|
|
|
m_steps.append(makeShared<GetSkinStep>(m_data));
|
2021-12-04 00:18:05 +00:00
|
|
|
}
|
|
|
|
|
2023-08-02 17:35:35 +01:00
|
|
|
MojangLogin::MojangLogin(AccountData* data, QString password, QObject* parent) : AuthFlow(data, parent), m_password(password)
|
|
|
|
{
|
2023-01-24 19:52:09 +00:00
|
|
|
m_steps.append(makeShared<YggdrasilStep>(m_data, m_password));
|
|
|
|
m_steps.append(makeShared<MinecraftProfileStepMojang>(m_data));
|
|
|
|
m_steps.append(makeShared<MigrationEligibilityStep>(m_data));
|
|
|
|
m_steps.append(makeShared<GetSkinStep>(m_data));
|
2021-12-04 00:18:05 +00:00
|
|
|
}
|