mirror of
https://github.com/AuthMe/AuthMeReloaded.git
synced 2024-09-11 06:38:00 +02: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 -->
|
<!-- EssentialsX Repo -->
|
||||||
<repository>
|
<repository>
|
||||||
<id>ess-repo</id>
|
<id>ess-repo</id>
|
||||||
<url>https://ci.drtshock.net/plugin/repository/everything</url>
|
<url>http://ci.drtshock.net/plugin/repository/everything</url>
|
||||||
</repository>
|
</repository>
|
||||||
|
|
||||||
<!-- CombatTagPlus Repo -->
|
<!-- CombatTagPlus Repo -->
|
||||||
|
@ -67,14 +67,10 @@ public class AsyncronousRegister {
|
|||||||
allowRegister = false;
|
allowRegister = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
else if (!Settings.unsafePasswords.isEmpty()) {
|
else if (!Settings.unsafePasswords.isEmpty() && Settings.unsafePasswords.contains(password.toLowerCase())) {
|
||||||
if (Settings.unsafePasswords.contains(password.toLowerCase())) {
|
|
||||||
m.send(player, "password_error_unsafe");
|
m.send(player, "password_error_unsafe");
|
||||||
allowRegister = false;
|
allowRegister = false;
|
||||||
}
|
} else if (database.isAuthAvailable(name)) {
|
||||||
}
|
|
||||||
|
|
||||||
else if (database.isAuthAvailable(name)) {
|
|
||||||
m.send(player, "user_regged");
|
m.send(player, "user_regged");
|
||||||
allowRegister = false;
|
allowRegister = false;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user