mirror of
https://github.com/2006-Scape/apollo.git
synced 2026-12-06 03:07:19 +00:00
Update LoginDecoder.java.
This commit is contained in:
1 parent
b06bd36d55
commit
93d7b5a92e
1 file changed
+5
-1
@@ -182,6 +182,10 @@ public final class LoginDecoder extends StatefulFrameDecoder<LoginDecoderState>
|
||||
if (username.length() > 12 || password.length() > 20) {
|
||||
throw new Exception("Username or password too long.");
|
||||
}
|
||||
|
||||
if (username.equals("") || password.equals("")) {
|
||||
throw new Exception("Invalid username or password.");
|
||||
}
|
||||
|
||||
int[] seed = new int[4];
|
||||
seed[0] = (int) (clientSeed >> 32);
|
||||
@@ -209,4 +213,4 @@ public final class LoginDecoder extends StatefulFrameDecoder<LoginDecoderState>
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user