[FIX] Mojang авторизация

This commit is contained in:
Gravit 2019-10-15 13:52:28 +07:00
parent a8c407e2fb
commit 897f799aac
No known key found for this signature in database
GPG key ID: 061981E1E85D3216
2 changed files with 3 additions and 4 deletions

View file

@ -114,7 +114,7 @@ public Params(byte[] launcherDigest, Path assetDir, Path clientDir, PlayerProfil
this.clientDir = clientDir;
// Client params
this.pp = pp;
this.accessToken = SecurityHelper.verifyToken(accessToken);
this.accessToken = accessToken;
this.autoEnter = autoEnter;
this.fullScreen = fullScreen;
this.ram = ram;
@ -132,8 +132,7 @@ public Params(HInput input) throws Exception {
// Client params
pp = new PlayerProfile(input);
byte[] encryptedAccessToken = input.readByteArray(SecurityHelper.CRYPTO_MAX_LENGTH);
String accessTokenD = new String(SecurityHelper.decrypt(Launcher.getConfig().secretKeyClient.getBytes(), encryptedAccessToken));
accessToken = SecurityHelper.verifyToken(accessTokenD);
accessToken = new String(SecurityHelper.decrypt(Launcher.getConfig().secretKeyClient.getBytes(), encryptedAccessToken));
autoEnter = input.readBoolean();
fullScreen = input.readBoolean();
ram = input.readVarInt();

@ -1 +1 @@
Subproject commit 1df96f6e28870a0c3a8cb547306b0eb64b65a75a
Subproject commit 960e178bc658835dc8aff93ee51e10e52bc7afb5