mirror of
https://github.com/AuthMe/AuthMeReloaded.git
synced 2024-11-23 10:45:23 +01:00
Fix duplicate registers
This commit is contained in:
parent
638374418c
commit
47f0f0e927
2
pom.xml
2
pom.xml
@ -127,7 +127,7 @@
|
||||
<!-- EssentialsX Repo -->
|
||||
<repository>
|
||||
<id>ess-repo</id>
|
||||
<url>https://ci.drtshock.net/plugin/repository/everything</url>
|
||||
<url>http://ci.drtshock.net/plugin/repository/everything</url>
|
||||
</repository>
|
||||
|
||||
<!-- CombatTagPlus Repo -->
|
||||
|
@ -67,14 +67,10 @@ public class AsyncronousRegister {
|
||||
allowRegister = false;
|
||||
}
|
||||
|
||||
else if (!Settings.unsafePasswords.isEmpty()) {
|
||||
if (Settings.unsafePasswords.contains(password.toLowerCase())) {
|
||||
else if (!Settings.unsafePasswords.isEmpty() && Settings.unsafePasswords.contains(password.toLowerCase())) {
|
||||
m.send(player, "password_error_unsafe");
|
||||
allowRegister = false;
|
||||
}
|
||||
}
|
||||
|
||||
else if (database.isAuthAvailable(name)) {
|
||||
} else if (database.isAuthAvailable(name)) {
|
||||
m.send(player, "user_regged");
|
||||
allowRegister = false;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user