mirror of
https://github.com/GravitLauncher/Launcher
synced 2024-11-15 11:39:11 +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;
|
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();
|
||||||
|
|
2
modules
2
modules
|
@ -1 +1 @@
|
||||||
Subproject commit 1df96f6e28870a0c3a8cb547306b0eb64b65a75a
|
Subproject commit 960e178bc658835dc8aff93ee51e10e52bc7afb5
|
Loading…
Reference in a new issue