mirror of
https://github.com/GravitLauncher/Launcher
synced 2024-11-15 03:31:15 +03:00
[FIX] Mojang авторизация
This commit is contained in:
parent
a8c407e2fb
commit
897f799aac
2 changed files with 3 additions and 4 deletions
|
@ -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();
|
||||
|
|
2
modules
2
modules
|
@ -1 +1 @@
|
|||
Subproject commit 1df96f6e28870a0c3a8cb547306b0eb64b65a75a
|
||||
Subproject commit 960e178bc658835dc8aff93ee51e10e52bc7afb5
|
Loading…
Reference in a new issue