From 7f93a119be76f3ae043f1a93b2854583a1d28cfe Mon Sep 17 00:00:00 2001 From: CrushedPixel Date: Wed, 17 Jun 2015 12:06:08 +0200 Subject: [PATCH] Adapted improved Password requirements (up to 32 instead of up to 16 characters) --- .../java/eu/crushedpixel/replaymod/gui/online/GuiRegister.java | 3 +++ src/main/resources/assets/replaymod/lang/en_US.lang | 1 + 2 files changed, 4 insertions(+) diff --git a/src/main/java/eu/crushedpixel/replaymod/gui/online/GuiRegister.java b/src/main/java/eu/crushedpixel/replaymod/gui/online/GuiRegister.java index 5ff1e0ef..f9272629 100644 --- a/src/main/java/eu/crushedpixel/replaymod/gui/online/GuiRegister.java +++ b/src/main/java/eu/crushedpixel/replaymod/gui/online/GuiRegister.java @@ -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; diff --git a/src/main/resources/assets/replaymod/lang/en_US.lang b/src/main/resources/assets/replaymod/lang/en_US.lang index 3b0f6839..4dc7459f 100644 --- a/src/main/resources/assets/replaymod/lang/en_US.lang +++ b/src/main/resources/assets/replaymod/lang/en_US.lang @@ -28,6 +28,7 @@ replaymod.api.mcuserexists=A ReplayMod account is already associated with this M replaymod.api.filetoobig=The uploaded file is too big replaymod.api.usernametoolong=The username is too long replaymod.api.descriptiontoolong=The description is too long +replaymod.api.passwordlength=The password has to be between 5 and 32 characters long #All of the chat messages replaymod.chat.recordingstarted=Recording started