mirror of
https://github.com/AuthMe/AuthMeReloaded.git
synced 2024-11-09 20:21:02 +01:00
Easing out code
This commit is contained in:
parent
e63764e585
commit
11785c6547
@ -52,11 +52,11 @@ public class ChangePasswordCommand implements CommandExecutor {
|
||||
}
|
||||
|
||||
String lowpass = args[1].toLowerCase();
|
||||
if ((lowpass.contains("delete") || lowpass.contains("where") || lowpass.contains("insert") || lowpass.contains("modify") || lowpass.contains("from") || lowpass.contains("select") || lowpass.contains(";") || lowpass.contains("null")) || !lowpass.matches(Settings.getPassRegex)) {
|
||||
if (lowpass.contains("delete") || lowpass.contains("where") || lowpass.contains("insert") || lowpass.contains("modify") || lowpass.contains("from") || lowpass.contains("select") || lowpass.contains(";") || lowpass.contains("null") || !lowpass.matches(Settings.getPassRegex)) {
|
||||
m.send(player, "password_error");
|
||||
return true;
|
||||
}
|
||||
if ((lowpass.equalsIgnoreCase(name))) {
|
||||
if (lowpass.equalsIgnoreCase(name)) {
|
||||
m.send(player, "password_error_nick");
|
||||
return true;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user