GH-1524 Regenerate Minecraft client token when the auth token is invalid
This makes the case where users copy MultiMC to other machines easier to handle. It doesn't require manual intervention and the tokens do not go in a desync loop.
This commit is contained in:
parent
4ca6878743
commit
035bdc7576
3 changed files with 9 additions and 2 deletions
|
@ -108,6 +108,7 @@ void LaunchController::login()
|
|||
auto failReasonNew = task->failReason();
|
||||
if(failReasonNew == "Invalid token.")
|
||||
{
|
||||
account->invalidateClientToken();
|
||||
failReason = needLoginAgain;
|
||||
}
|
||||
else failReason = failReasonNew;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue