Adapted improved Password requirements (up to 32 instead of up to 16 characters)

This commit is contained in:
CrushedPixel
2015-06-17 12:06:08 +02:00
parent ced45bb66f
commit 7f93a119be
2 changed files with 4 additions and 0 deletions

View File

@@ -52,6 +52,9 @@ public class GuiRegister extends GuiScreen {
passwordInput = new PasswordTextField(GuiConstants.REGISTER_PASSWORD_FIELD, fontRendererObj, this.width / 2 - 45, 90, 145, 20);
passwordConfirmation = new PasswordTextField(GuiConstants.REGISTER_PASSWORD_CONFIRM_FIELD, fontRendererObj, this.width / 2 - 45, 120, 145, 20);
passwordInput.setMaxStringLength(32);
passwordConfirmation.setMaxStringLength(32);
registerButton = new GuiButton(GuiConstants.REGISTER_OKAY_BUTTON, this.width / 2 - 150 - 2, 170, I18n.format("replaymod.gui.register"));
registerButton.enabled = false;
registerButton.width = 150;