mirror of
https://github.com/2006-Scape/apollo.git
synced 2026-07-07 16:49:12 +00:00
Update LoginDecoder.java.
This commit is contained in:
@@ -183,6 +183,10 @@ public final class LoginDecoder extends StatefulFrameDecoder<LoginDecoderState>
|
|||||||
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);
|
||||||
seed[1] = (int) clientSeed;
|
seed[1] = (int) clientSeed;
|
||||||
|
|||||||
Reference in New Issue
Block a user