mirror of
https://github.com/GravitLauncher/Launcher
synced 2024-12-23 00:51:01 +03:00
[FIX] Фикс неработоспособности Mojang авторизации
This commit is contained in:
parent
68cb755212
commit
ff30ba2670
2 changed files with 2 additions and 1 deletions
|
@ -21,7 +21,7 @@ public final class JoinServerRequest extends Request<JoinServerRequestEvent> imp
|
||||||
@LauncherAPI
|
@LauncherAPI
|
||||||
public JoinServerRequest(String username, String accessToken, String serverID) {
|
public JoinServerRequest(String username, String accessToken, String serverID) {
|
||||||
this.username = VerifyHelper.verifyUsername(username);
|
this.username = VerifyHelper.verifyUsername(username);
|
||||||
this.accessToken = SecurityHelper.verifyToken(accessToken);
|
this.accessToken = accessToken;
|
||||||
this.serverID = VerifyHelper.verifyServerID(serverID);
|
this.serverID = VerifyHelper.verifyServerID(serverID);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -208,6 +208,7 @@ public void joinServer(GameProfile profile, String accessToken, String serverID)
|
||||||
try {
|
try {
|
||||||
success = new JoinServerRequest(username, accessToken, serverID).request().allow;
|
success = new JoinServerRequest(username, accessToken, serverID).request().allow;
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
|
LogHelper.error(e);
|
||||||
throw new AuthenticationUnavailableException(e);
|
throw new AuthenticationUnavailableException(e);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue