2021-07-26 20:44:11 +01:00
|
|
|
#include "MojangLogin.h"
|
|
|
|
|
2021-11-20 15:22:22 +00:00
|
|
|
MojangLogin::MojangLogin(
|
|
|
|
AccountData *data,
|
|
|
|
QString password,
|
|
|
|
QObject *parent
|
|
|
|
): AuthContext(data, parent), m_password(password) {}
|
2021-07-26 20:44:11 +01:00
|
|
|
|
|
|
|
void MojangLogin::executeTask() {
|
|
|
|
m_requestsDone = 0;
|
|
|
|
m_xboxProfileSucceeded = false;
|
|
|
|
m_mcAuthSucceeded = false;
|
|
|
|
|
|
|
|
initMojang();
|
|
|
|
|
|
|
|
beginActivity(Katabasis::Activity::LoggingIn);
|
|
|
|
m_yggdrasil->login(m_password);
|
|
|
|
}
|