Remove checks - #308
This commit is contained in:
parent
5cc5ee8cae
commit
6ac51d97f5
@ -44,10 +44,7 @@ public class AsyncRegister {
|
|||||||
} else if (!Settings.isRegistrationEnabled) {
|
} else if (!Settings.isRegistrationEnabled) {
|
||||||
m.send(player, MessageKey.REGISTRATION_DISABLED);
|
m.send(player, MessageKey.REGISTRATION_DISABLED);
|
||||||
return false;
|
return false;
|
||||||
} else if (passLow.contains("delete") || passLow.contains("where") || passLow.contains("insert")
|
} else if (!passLow.matches(Settings.getPassRegex)) {
|
||||||
|| passLow.contains("modify") || passLow.contains("from") || passLow.contains("select")
|
|
||||||
|| passLow.contains(";") || passLow.contains("null") || !passLow.matches(Settings.getPassRegex)) {
|
|
||||||
// TODO #308: Remove check for SQL keywords
|
|
||||||
m.send(player, MessageKey.PASSWORD_MATCH_ERROR);
|
m.send(player, MessageKey.PASSWORD_MATCH_ERROR);
|
||||||
return false;
|
return false;
|
||||||
} else if (passLow.equalsIgnoreCase(player.getName())) {
|
} else if (passLow.equalsIgnoreCase(player.getName())) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user