mirror of
https://github.com/AuthMe/AuthMeReloaded.git
synced 2024-10-05 18:08:05 +02:00
Fix duplicate registers
This commit is contained in:
parent
638374418c
commit
47f0f0e927
4
pom.xml
4
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 -->
|
||||||
@ -257,7 +257,7 @@
|
|||||||
</exclusions>
|
</exclusions>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
||||||
<!-- Spigot-Api, http://www.spigotmc.org/ Based on the Bukkit project,
|
<!-- Spigot-Api, http://www.spigotmc.org/ Based on the Bukkit project,
|
||||||
http://bukkit.org/ -->
|
http://bukkit.org/ -->
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.bukkit</groupId>
|
<groupId>org.bukkit</groupId>
|
||||||
|
@ -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