From ae426b2fd072a441edd5156cecc8c1fa00bc389c Mon Sep 17 00:00:00 2001 From: microwin7 Date: Sat, 13 May 2023 11:49:30 +0300 Subject: [PATCH] [FIX] Incorrect send AuthException for User not found (#651) --- .../gravit/launchserver/auth/core/AbstractSQLCoreProvider.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/LaunchServer/src/main/java/pro/gravit/launchserver/auth/core/AbstractSQLCoreProvider.java b/LaunchServer/src/main/java/pro/gravit/launchserver/auth/core/AbstractSQLCoreProvider.java index 1336c331..ccd20378 100644 --- a/LaunchServer/src/main/java/pro/gravit/launchserver/auth/core/AbstractSQLCoreProvider.java +++ b/LaunchServer/src/main/java/pro/gravit/launchserver/auth/core/AbstractSQLCoreProvider.java @@ -136,7 +136,7 @@ public AuthManager.AuthReport refreshAccessToken(String refreshToken, AuthRespon public AuthManager.AuthReport authorize(String login, AuthResponse.AuthContext context, AuthRequest.AuthPasswordInterface password, boolean minecraftAccess) throws IOException { SQLUser SQLUser = (SQLUser) getUserByLogin(login); if (SQLUser == null) { - throw AuthException.wrongPassword(); + throw AuthException.userNotFound(); } if (context != null) { AuthPlainPassword plainPassword = (AuthPlainPassword) password;