mirror of
https://github.com/MultiMC/MultiMC5.git
synced 2024-12-26 18:14:22 +00:00
Fix auth for 13w41a
This commit is contained in:
parent
a9ceea27cc
commit
f8b4c2c0b2
@ -60,6 +60,7 @@ QStringList OneSixInstance::processMinecraftArgs(LoginResponse response)
|
||||
// yggdrasil!
|
||||
token_mapping["auth_username"] = response.username;
|
||||
token_mapping["auth_session"] = response.session_id;
|
||||
token_mapping["auth_access_token"] = response.access_token;
|
||||
token_mapping["auth_player_name"] = response.player_name;
|
||||
token_mapping["auth_uuid"] = response.player_id;
|
||||
|
||||
|
@ -264,6 +264,6 @@ void LoginTask::parseYggdrasilReply(QByteArray data)
|
||||
};
|
||||
*/
|
||||
|
||||
result = {uInfo.username, sessionID, playerName, playerID};
|
||||
result = {uInfo.username, sessionID, playerName, playerID, accessToken};
|
||||
emitSucceeded();
|
||||
}
|
||||
|
@ -27,9 +27,10 @@ struct UserInfo
|
||||
struct LoginResponse
|
||||
{
|
||||
QString username;
|
||||
QString session_id;
|
||||
QString session_id; // session id is a combination of player id and the access token
|
||||
QString player_name;
|
||||
QString player_id;
|
||||
QString access_token;
|
||||
};
|
||||
|
||||
class QNetworkReply;
|
||||
|
Loading…
Reference in New Issue
Block a user