From ef6f7039f1e2ca9f6c086be323fd5af091f676d1 Mon Sep 17 00:00:00 2001 From: Lncvrt Date: Sun, 15 Jun 2025 15:31:57 -0700 Subject: [PATCH] Fix change password menu error messages --- .../AccountMenu/AccountChangePassword.cs | 18 ++++++------------ 1 file changed, 6 insertions(+), 12 deletions(-) diff --git a/Assets/Scripts/AccountMenu/AccountChangePassword.cs b/Assets/Scripts/AccountMenu/AccountChangePassword.cs index 537b676..38dd412 100644 --- a/Assets/Scripts/AccountMenu/AccountChangePassword.cs +++ b/Assets/Scripts/AccountMenu/AccountChangePassword.cs @@ -62,24 +62,18 @@ public class AccountChangePassword : MonoBehaviour AccountHandler.UpdateStatusText(changePasswordStatusText, "Encryption/decryption issues", Color.red); break; case "-1": - AccountHandler.UpdateStatusText(changePasswordStatusText, "Internal login server error", Color.red); - break; - case "-2": - AccountHandler.UpdateStatusText(changePasswordStatusText, "New Password, Password, or username is empty", Color.red); - break; - case "-3": AccountHandler.UpdateStatusText(changePasswordStatusText, "New Password is too short or too long", Color.red); break; - case "-4": - AccountHandler.UpdateStatusText(changePasswordStatusText, "Username must be 3-16 characters, letters and numbers only", Color.red); + case "-2": + AccountHandler.UpdateStatusText(changePasswordStatusText, "Password must have 8 characters, one number and one letter", Color.red); break; - case "-5": + case "-3": AccountHandler.UpdateStatusText(changePasswordStatusText, "Incorrect current password", Color.red); break; - case "-6": - AccountHandler.UpdateStatusText(changePasswordStatusText, "Current username is incorrect", Color.red); + case "-4": + AccountHandler.UpdateStatusText(changePasswordStatusText, "Failed to find info about your user (refresh login?)", Color.red); break; - case "-7": + case "-5": AccountHandler.UpdateStatusText(changePasswordStatusText, "New password cannot be the same as your old password", Color.red); break; }