Проверка checkSign в авторизации

This commit is contained in:
Gravit 2018-10-26 23:59:11 +07:00
parent 8594c2f702
commit 4f65a0a396
No known key found for this signature in database
GPG key ID: 061981E1E85D3216

View file

@ -45,6 +45,11 @@ public void execute(WebSocketService service, ChannelHandlerContext ctx, Client
AuthProvider.authError(LaunchServer.server.config.authRejectString);
return;
}
if(!clientData.checkSign)
{
AuthProvider.authError("Don't skip Launcher Update");
return;
}
AuthProvider provider = LaunchServer.server.config.authProvider[authid];
AuthProviderResult result = provider.auth(login, password, ip);
if (!VerifyHelper.isValidUsername(result.username)) {