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

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