diff --git a/LaunchServer/src/main/java/ru/gravit/launchserver/response/auth/AuthResponse.java b/LaunchServer/src/main/java/ru/gravit/launchserver/response/auth/AuthResponse.java index 3c30a6ae..6e398eec 100644 --- a/LaunchServer/src/main/java/ru/gravit/launchserver/response/auth/AuthResponse.java +++ b/LaunchServer/src/main/java/ru/gravit/launchserver/response/auth/AuthResponse.java @@ -71,6 +71,10 @@ public void reply() throws Exception { AuthProvider.authError(server.config.authRejectString); return; } + if(!clientData.checkSign) + { + throw new AuthException("You must using checkLauncher"); + } result = provider.auth(login, password, ip); if (!VerifyHelper.isValidUsername(result.username)) { AuthProvider.authError(String.format("Illegal result: '%s'", result.username)); diff --git a/LaunchServer/src/main/java/ru/gravit/launchserver/response/update/UpdateResponse.java b/LaunchServer/src/main/java/ru/gravit/launchserver/response/update/UpdateResponse.java index f9f7b1b5..11e12a6e 100644 --- a/LaunchServer/src/main/java/ru/gravit/launchserver/response/update/UpdateResponse.java +++ b/LaunchServer/src/main/java/ru/gravit/launchserver/response/update/UpdateResponse.java @@ -38,7 +38,7 @@ public void reply() throws IOException { return; } Client clientData = server.sessionManager.getClient(session); - if(!clientData.isAuth || clientData.type != Client.Type.USER) { requestError("Assess denied"); return;} + if(!clientData.isAuth || clientData.type != Client.Type.USER || clientData.profile == null) { requestError("Assess denied"); return;} for(SignedObjectHolder p : server.getProfiles()) { ClientProfile profile = p.object;