diff --git a/docs/config.md b/docs/config.md index 2a664563..bbfefbd1 100644 --- a/docs/config.md +++ b/docs/config.md @@ -433,8 +433,6 @@ Security: # AuthMe will automatically disable and the server won't be protected! stopServer: true console: - # Remove passwords from console? - removePassword: true # Copy AuthMe log output in a separate file as well? logConsole: true captcha: diff --git a/samples/NewConfig.yml b/samples/NewConfig.yml index a7b9fc6e..91e063d0 100644 --- a/samples/NewConfig.yml +++ b/samples/NewConfig.yml @@ -473,8 +473,6 @@ Security: console: # Remove spam console noConsoleSpam: false - # Replace passwords in the console when player type a command like /login - removePassword: true captcha: # Player need to put a captcha when he fails too lot the password useCaptcha: false diff --git a/src/main/java/fr/xephi/authme/initialization/OnStartupTasks.java b/src/main/java/fr/xephi/authme/initialization/OnStartupTasks.java index 77d18264..e669a5a7 100644 --- a/src/main/java/fr/xephi/authme/initialization/OnStartupTasks.java +++ b/src/main/java/fr/xephi/authme/initialization/OnStartupTasks.java @@ -12,7 +12,6 @@ import fr.xephi.authme.settings.Settings; import fr.xephi.authme.settings.properties.DatabaseSettings; import fr.xephi.authme.settings.properties.EmailSettings; import fr.xephi.authme.settings.properties.PluginSettings; -import fr.xephi.authme.settings.properties.SecuritySettings; import org.apache.logging.log4j.LogManager; import org.bstats.bukkit.Metrics; import org.bukkit.Bukkit; @@ -63,9 +62,6 @@ public class OnStartupTasks { * @param logger the plugin logger */ public static void setupConsoleFilter(Settings settings, Logger logger) { - if (!settings.getProperty(SecuritySettings.REMOVE_PASSWORD_FROM_CONSOLE)) { - return; - } // Try to set the log4j filter try { Class.forName("org.apache.logging.log4j.core.filter.AbstractFilter"); diff --git a/src/main/java/fr/xephi/authme/settings/properties/SecuritySettings.java b/src/main/java/fr/xephi/authme/settings/properties/SecuritySettings.java index f58f8b6b..6b6286e6 100644 --- a/src/main/java/fr/xephi/authme/settings/properties/SecuritySettings.java +++ b/src/main/java/fr/xephi/authme/settings/properties/SecuritySettings.java @@ -20,10 +20,6 @@ public final class SecuritySettings implements SettingsHolder { public static final Property STOP_SERVER_ON_PROBLEM = newProperty("Security.SQLProblem.stopServer", true); - @Comment("Remove passwords from console?") - public static final Property REMOVE_PASSWORD_FROM_CONSOLE = - newProperty("Security.console.removePassword", true); - @Comment("Copy AuthMe log output in a separate file as well?") public static final Property USE_LOGGING = newProperty("Security.console.logConsole", true); diff --git a/src/test/resources/fr/xephi/authme/config.test.yml b/src/test/resources/fr/xephi/authme/config.test.yml index b6811638..54548e62 100644 --- a/src/test/resources/fr/xephi/authme/config.test.yml +++ b/src/test/resources/fr/xephi/authme/config.test.yml @@ -275,8 +275,6 @@ Security: console: # Remove spam console noConsoleSpam: false - # Replace passwords in the console when player type a command like /login - removePassword: true # Copy AuthMe log output in a separate file as well? logConsole: true captcha: