From 1a7160c3944fccfe4687f891cc7543a10e03410b Mon Sep 17 00:00:00 2001 From: Gravita Date: Fri, 15 Oct 2021 21:35:47 +0700 Subject: [PATCH] [FIX] Small UI improvements --- .../pro/gravit/launchserver/auth/core/AuthCoreProvider.java | 3 ++- .../pro/gravit/launchserver/command/service/TokenCommand.java | 4 ++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/LaunchServer/src/main/java/pro/gravit/launchserver/auth/core/AuthCoreProvider.java b/LaunchServer/src/main/java/pro/gravit/launchserver/auth/core/AuthCoreProvider.java index 33c43394..58585117 100644 --- a/LaunchServer/src/main/java/pro/gravit/launchserver/auth/core/AuthCoreProvider.java +++ b/LaunchServer/src/main/java/pro/gravit/launchserver/auth/core/AuthCoreProvider.java @@ -306,7 +306,8 @@ public void invoke(String... args) throws Exception { } else { password = new AuthPlainPassword(plainPassword); } - instance.registration(username, email, password, map); + User user = instance.registration(username, email, password, map); + logger.info("User '{}' registered", user.toString()); } }); } diff --git a/LaunchServer/src/main/java/pro/gravit/launchserver/command/service/TokenCommand.java b/LaunchServer/src/main/java/pro/gravit/launchserver/command/service/TokenCommand.java index acedeca8..646fe1ce 100644 --- a/LaunchServer/src/main/java/pro/gravit/launchserver/command/service/TokenCommand.java +++ b/LaunchServer/src/main/java/pro/gravit/launchserver/command/service/TokenCommand.java @@ -36,6 +36,10 @@ public void invoke(String... args) throws Exception { if(profile == null) { logger.warn("Profile {} not found", args[0]); } + if(pair == null) { + logger.error("AuthId {} not found", args[1]); + return; + } String token = server.authManager.newCheckServerToken(args[0], pair.name); logger.info("Server token {} authId {}: {}", args[0], pair.name, token); }