mirror of
https://github.com/2006-Scape/apollo.git
synced 2026-07-07 08:39:17 +00:00
Update LoginDecoder.java.
This commit is contained in:
@@ -182,6 +182,10 @@ public final class LoginDecoder extends StatefulFrameDecoder<LoginDecoderState>
|
|||||||
if (username.length() > 12 || password.length() > 20) {
|
if (username.length() > 12 || password.length() > 20) {
|
||||||
throw new Exception("Username or password too long.");
|
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];
|
int[] seed = new int[4];
|
||||||
seed[0] = (int) (clientSeed >> 32);
|
seed[0] = (int) (clientSeed >> 32);
|
||||||
@@ -209,4 +213,4 @@ public final class LoginDecoder extends StatefulFrameDecoder<LoginDecoderState>
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user