mirror of
https://github.com/GravitLauncher/Launcher
synced 2025-01-09 00:59:44 +03:00
[FIX] Incorrect send AuthException for User not found (#651)
This commit is contained in:
parent
498325f3e8
commit
ae426b2fd0
1 changed files with 1 additions and 1 deletions
|
@ -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 {
|
public AuthManager.AuthReport authorize(String login, AuthResponse.AuthContext context, AuthRequest.AuthPasswordInterface password, boolean minecraftAccess) throws IOException {
|
||||||
SQLUser SQLUser = (SQLUser) getUserByLogin(login);
|
SQLUser SQLUser = (SQLUser) getUserByLogin(login);
|
||||||
if (SQLUser == null) {
|
if (SQLUser == null) {
|
||||||
throw AuthException.wrongPassword();
|
throw AuthException.userNotFound();
|
||||||
}
|
}
|
||||||
if (context != null) {
|
if (context != null) {
|
||||||
AuthPlainPassword plainPassword = (AuthPlainPassword) password;
|
AuthPlainPassword plainPassword = (AuthPlainPassword) password;
|
||||||
|
|
Loading…
Reference in a new issue