Check password regexp on change password... sorry for that old bug T.T
This commit is contained in:
parent
030e9b599e
commit
2aab1d67bb
@ -58,6 +58,10 @@ public class ChangePasswordCommand implements CommandExecutor {
|
|||||||
m.send(player, "password_error");
|
m.send(player, "password_error");
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
if (!args[1].matches(Settings.getPassRegex)) {
|
||||||
|
m.send(player, "password_error");
|
||||||
|
return true;
|
||||||
|
}
|
||||||
try {
|
try {
|
||||||
String hashnew = PasswordSecurity.getHash(Settings.getPasswordHash, args[1], name);
|
String hashnew = PasswordSecurity.getHash(Settings.getPasswordHash, args[1], name);
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user