Check password regexp on change password... sorry for that old bug T.T

This commit is contained in:
Xephi59 2015-06-28 01:50:27 +02:00
parent 030e9b599e
commit 2aab1d67bb

View File

@ -58,6 +58,10 @@ public class ChangePasswordCommand implements CommandExecutor {
m.send(player, "password_error");
return true;
}
if (!args[1].matches(Settings.getPassRegex)) {
m.send(player, "password_error");
return true;
}
try {
String hashnew = PasswordSecurity.getHash(Settings.getPasswordHash, args[1], name);