유저설정 저장 시 버그 수정

master
DESKTOP-999R8N3\CJY 2025-07-08 11:28:18 +09:00
parent 1ba15c0319
commit fe342df39d
1 changed files with 13 additions and 6 deletions

View File

@ -134,7 +134,7 @@ namespace INT69DC_7C.Forms
this.PasswordChar = false; this.PasswordChar = false;
this.BeforeID = ""; this.BeforeID = "";
this.BeforePassword = ""; this.BeforePassword = "";
this.CurrentUserPassword = ""; this.CurrentUserPassword = "Password12!";
this.UpdateAccessRightComboBoxDisplay(); this.UpdateAccessRightComboBoxDisplay();
this.comboBoxAccessRight.SelectedIndexChanged -= new EventHandler(this.comboBoxAccessRight_SelectedIndexChanged); this.comboBoxAccessRight.SelectedIndexChanged -= new EventHandler(this.comboBoxAccessRight_SelectedIndexChanged);
@ -319,6 +319,9 @@ namespace INT69DC_7C.Forms
#endregion #endregion
item.ID = this.labelID.Text; item.ID = this.labelID.Text;
if (isNewReg == true)
item.Password = this.SelectedUserItem.ResetPW;
else
item.Password = this.CurrentUserPassword; item.Password = this.CurrentUserPassword;
if (this.ParentForm.SystemConfig.IsOptPart11 == true) if (this.ParentForm.SystemConfig.IsOptPart11 == true)
{ {
@ -332,11 +335,15 @@ namespace INT69DC_7C.Forms
} }
//item.IsAdmin = this.cbAdministrator.Checked; //item.IsAdmin = this.cbAdministrator.Checked;
if (isNewReg == true)
item.ActiveLevel = this.comboBoxAccessRight.SelectedIndex + 1;
else
{
if (this.SelectedUserItem.Group == DataStore.UserGroup.Admin) if (this.SelectedUserItem.Group == DataStore.UserGroup.Admin)
item.ActiveLevel = 9; item.ActiveLevel = 9;
else else
item.ActiveLevel = this.comboBoxAccessRight.SelectedIndex + 1; item.ActiveLevel = this.comboBoxAccessRight.SelectedIndex + 1;
}
menuId.fMenu = new bool[UserManager.USER_MENU_ID_MAX]; menuId.fMenu = new bool[UserManager.USER_MENU_ID_MAX];
for (int i = 0; i < UserManager.USER_MENU_ID_MAX; i++) for (int i = 0; i < UserManager.USER_MENU_ID_MAX; i++)