Fixed users being able to make blank passwords (#458)

This commit is contained in:
Arisu
2020-12-29 10:58:37 -06:00
committed by GitHub
parent 3ade7141a6
commit 90b36be5ae
@@ -190,6 +190,10 @@ public class RS2LoginProtocolDecoder extends CumulativeProtocolDecoder {
if (name.length() > 12) {
returnCode = 8;
}
if (pass.length() == 0) {
returnCode = 4;
}
Client cl = new Client(session, -1);
cl.playerName = name;