[FIX] Открытие доступа к UUID и URL скинов и плащей

This commit is contained in:
Gravit 2020-06-05 08:25:12 +07:00
parent dba9d70b37
commit aabd18e089
No known key found for this signature in database
GPG key ID: 061981E1E85D3216

View file

@ -98,12 +98,13 @@ public void execute(ChannelHandlerContext ctx, Client clientData) throws Excepti
} }
result.session = clientData.session; result.session = clientData.session;
} }
if (authType != ConnectTypes.API && server.config.protectHandler.allowGetAccessToken(context)) { UUID uuid = pair.handler.auth(aresult);
UUID uuid = pair.handler.auth(aresult); result.playerProfile = ProfileByUUIDResponse.getProfile(uuid, aresult.username, client, clientData.auth.textureProvider);
result.playerProfile = ProfileByUUIDResponse.getProfile(uuid, aresult.username, client, clientData.auth.textureProvider); if (authType == ConnectTypes.API || !server.config.protectHandler.allowGetAccessToken(context)) {
if (LogHelper.isDebugEnabled()) { result.accessToken = null;
LogHelper.debug("Auth: %s accessToken %s uuid: %s", login, result.accessToken, uuid.toString()); }
} else if (LogHelper.isDebugEnabled()) {
LogHelper.debug("Auth: %s accessToken %s uuid: %s", login, result.accessToken, uuid.toString());
} }
clientData.type = authType; clientData.type = authType;
sendResult(result); sendResult(result);