From 47f0f0e9271bb3c3bfe4c031a51746b93c6ddfac Mon Sep 17 00:00:00 2001 From: games647 Date: Mon, 28 Sep 2015 20:08:51 +0200 Subject: [PATCH] Fix duplicate registers --- pom.xml | 4 ++-- .../authme/process/register/AsyncronousRegister.java | 12 ++++-------- 2 files changed, 6 insertions(+), 10 deletions(-) diff --git a/pom.xml b/pom.xml index 87feaae49..da80a0d88 100644 --- a/pom.xml +++ b/pom.xml @@ -127,7 +127,7 @@ ess-repo - https://ci.drtshock.net/plugin/repository/everything + http://ci.drtshock.net/plugin/repository/everything @@ -257,7 +257,7 @@ - org.bukkit diff --git a/src/main/java/fr/xephi/authme/process/register/AsyncronousRegister.java b/src/main/java/fr/xephi/authme/process/register/AsyncronousRegister.java index 255c696d5..cc516697b 100644 --- a/src/main/java/fr/xephi/authme/process/register/AsyncronousRegister.java +++ b/src/main/java/fr/xephi/authme/process/register/AsyncronousRegister.java @@ -67,14 +67,10 @@ public class AsyncronousRegister { allowRegister = false; } - else if (!Settings.unsafePasswords.isEmpty()) { - if (Settings.unsafePasswords.contains(password.toLowerCase())) { - m.send(player, "password_error_unsafe"); - allowRegister = false; - } - } - - else if (database.isAuthAvailable(name)) { + else if (!Settings.unsafePasswords.isEmpty() && Settings.unsafePasswords.contains(password.toLowerCase())) { + m.send(player, "password_error_unsafe"); + allowRegister = false; + } else if (database.isAuthAvailable(name)) { m.send(player, "user_regged"); allowRegister = false; }