mirror of
https://github.com/AuthMe/AuthMeReloaded.git
synced 2024-09-07 12:48:03 +02:00
Duplicate Regexp check removed, and now we check if password different
from username
This commit is contained in:
parent
8e010d467c
commit
ac543df216
@ -58,7 +58,7 @@ public class ChangePasswordCommand implements CommandExecutor {
|
||||
m.send(player, "password_error");
|
||||
return true;
|
||||
}
|
||||
if (!args[1].matches(Settings.getPassRegex)) {
|
||||
if (lowpass.equalsIgnoreCase(name)) {
|
||||
m.send(player, "password_error");
|
||||
return true;
|
||||
}
|
||||
|
@ -52,12 +52,7 @@ public class AsyncronousRegister {
|
||||
allowRegister = false;
|
||||
}
|
||||
|
||||
else if (!password.matches(Settings.getPassRegex)) {
|
||||
m.send(player, "password_error");
|
||||
allowRegister = false;
|
||||
}
|
||||
|
||||
else 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)) {
|
||||
else if ((lowpass.equalsIgnoreCase(player.getName()) || 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");
|
||||
allowRegister = false;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user