Skip to content

Commit 8728416

Browse files
committed
[FIX] Use of an empty login or one with fewer than 2 for "memory" AuthCoreProvider
1 parent c83ed63 commit 8728416

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

components/launchserver/src/main/java/pro/gravit/launchserver/auth/core/MemoryAuthCoreProvider.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ public AuthManager.AuthReport refreshAccessToken(String refreshToken, AuthRespon
7171

7272
@Override
7373
public AuthManager.AuthReport authorize(String login, AuthResponse.AuthContext context, AuthRequest.AuthPasswordInterface password, boolean minecraftAccess) throws IOException {
74-
if (login == null) {
74+
if (login == null || login.trim().length() < 2) {
7575
throw AuthException.userNotFound();
7676
}
7777
MemoryUser user = null;

0 commit comments

Comments
 (0)