From fe342df39d43ca12953e942c940d99489089fa15 Mon Sep 17 00:00:00 2001 From: "DESKTOP-999R8N3\\CJY" Date: Tue, 8 Jul 2025 11:28:18 +0900 Subject: [PATCH] =?UTF-8?q?=EC=9C=A0=EC=A0=80=EC=84=A4=EC=A0=95=20?= =?UTF-8?q?=EC=A0=80=EC=9E=A5=20=EC=8B=9C=20=EB=B2=84=EA=B7=B8=20=EC=88=98?= =?UTF-8?q?=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- INT69DC_7C/Forms/FormUserEditor.cs | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/INT69DC_7C/Forms/FormUserEditor.cs b/INT69DC_7C/Forms/FormUserEditor.cs index 6ff80b0..0b018b4 100644 --- a/INT69DC_7C/Forms/FormUserEditor.cs +++ b/INT69DC_7C/Forms/FormUserEditor.cs @@ -134,7 +134,7 @@ namespace INT69DC_7C.Forms this.PasswordChar = false; this.BeforeID = ""; this.BeforePassword = ""; - this.CurrentUserPassword = ""; + this.CurrentUserPassword = "Password12!"; this.UpdateAccessRightComboBoxDisplay(); this.comboBoxAccessRight.SelectedIndexChanged -= new EventHandler(this.comboBoxAccessRight_SelectedIndexChanged); @@ -319,7 +319,10 @@ namespace INT69DC_7C.Forms #endregion item.ID = this.labelID.Text; - item.Password = this.CurrentUserPassword; + if (isNewReg == true) + item.Password = this.SelectedUserItem.ResetPW; + else + item.Password = this.CurrentUserPassword; if (this.ParentForm.SystemConfig.IsOptPart11 == true) { item.ExpireId = int.Parse(this.labelExpiryDateOfAccount.Text); @@ -332,11 +335,15 @@ namespace INT69DC_7C.Forms } //item.IsAdmin = this.cbAdministrator.Checked; - - if (this.SelectedUserItem.Group == DataStore.UserGroup.Admin) - item.ActiveLevel = 9; - else + if (isNewReg == true) item.ActiveLevel = this.comboBoxAccessRight.SelectedIndex + 1; + else + { + if (this.SelectedUserItem.Group == DataStore.UserGroup.Admin) + item.ActiveLevel = 9; + else + item.ActiveLevel = this.comboBoxAccessRight.SelectedIndex + 1; + } menuId.fMenu = new bool[UserManager.USER_MENU_ID_MAX]; for (int i = 0; i < UserManager.USER_MENU_ID_MAX; i++)