Do not require a password on registration if two factor is enabled

This commit is contained in:
games647 2016-02-07 11:36:02 +01:00
parent cb27d46e4e
commit d3d377ca02

View File

@ -296,7 +296,7 @@ public final class CommandInitializer {
.labels("register", "reg") .labels("register", "reg")
.description("Registration command") .description("Registration command")
.detailedDescription("Command to register using AuthMeReloaded.") .detailedDescription("Command to register using AuthMeReloaded.")
.withArgument("password", "Password", false) .withArgument("password", "Password", true)
.withArgument("verifyPassword", "Verify password", true) .withArgument("verifyPassword", "Verify password", true)
.permissions(ALLOWED, PlayerPermission.REGISTER) .permissions(ALLOWED, PlayerPermission.REGISTER)
.executableCommand(new RegisterCommand()) .executableCommand(new RegisterCommand())