Update LoginDecoder.java.

This commit is contained in:
lare96
2014-02-23 01:06:23 -05:00
parent b06bd36d55
commit 93d7b5a92e
@@ -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;