Update LoginDecoder.java.

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