parent
0bfb6919f0
commit
1871a66657
|
@ -366,6 +366,15 @@ namespace INT69DC_7C.Forms
|
|||
else
|
||||
return Color.Silver;
|
||||
}
|
||||
private string PasswordToAsterisk(string sValue)
|
||||
{
|
||||
string temp = "";
|
||||
|
||||
for (int i = 0; i < sValue.Length; i++)
|
||||
temp += "*";
|
||||
|
||||
return temp;
|
||||
}
|
||||
private void CheckBoxCheckedAsLevel(DataStore.UserGroup level)
|
||||
{
|
||||
switch (level)
|
||||
|
@ -503,6 +512,7 @@ namespace INT69DC_7C.Forms
|
|||
this.labelExpiryDateOfPassword2.Text = "yyyy.mm.DD";
|
||||
|
||||
this.comboBoxAccessRight.Visible = true;
|
||||
this.comboBoxAccessRight.Enabled = true;
|
||||
this.comboBoxAccessRight.BringToFront();
|
||||
this.UpdateAccessRightComboBoxDisplay();
|
||||
this.comboBoxAccessRight.SelectedIndexChanged -= new EventHandler(this.comboBoxAccessRight_SelectedIndexChanged);
|
||||
|
@ -613,21 +623,15 @@ namespace INT69DC_7C.Forms
|
|||
}
|
||||
private void UpdateSelectUserDisplay(UserItem item)
|
||||
{
|
||||
string pass = "";
|
||||
this.SetEnableID(false);
|
||||
|
||||
// ID
|
||||
this.labelID.Text = item.ID;
|
||||
// Password
|
||||
if (this.SelectedUserItem.IsFirstPassword == 1)
|
||||
if (item.Password == this.SelectedUserItem.ResetPW)
|
||||
this.labelPassword.Text = item.Password;
|
||||
else
|
||||
{
|
||||
for (int i = 0; i < item.Password.Length; i++)
|
||||
pass = pass + '*';
|
||||
|
||||
this.labelPassword.Text = pass;
|
||||
}
|
||||
this.labelPassword.Text = this.PasswordToAsterisk(item.Password);
|
||||
|
||||
this.UpdateAccessRightDisplay(item.ActiveLevel);
|
||||
this.buttonSave.Visible = false;
|
||||
|
@ -1074,8 +1078,11 @@ namespace INT69DC_7C.Forms
|
|||
|
||||
this.labelPassword.Text = value;
|
||||
|
||||
if (this.buttonSave.Visible == false)
|
||||
this.buttonSave.Visible = true;
|
||||
if (this.labelPassword.Text != "")
|
||||
{
|
||||
if (this.buttonSave.Visible == false)
|
||||
this.buttonSave.Visible = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
private void labelExpireAccount_Click(object sender, EventArgs e)
|
||||
|
@ -1264,8 +1271,6 @@ namespace INT69DC_7C.Forms
|
|||
|
||||
if (index == 0)
|
||||
{
|
||||
this.SetEnablePassword(true);
|
||||
|
||||
UserManager.UserManager_GetUserListID(this.listBoxUserList.SelectedItem.ToString());
|
||||
}
|
||||
else if (index > 0)
|
||||
|
@ -1274,13 +1279,11 @@ namespace INT69DC_7C.Forms
|
|||
if (this.ParentForm.SystemConfig.CurrentUser.ID == this.listBoxUserList.Items[index].ToString())
|
||||
{
|
||||
this.SetEnablePassword(true);
|
||||
this.buttonDelete.Visible = false;
|
||||
this.buttonResetPW.Visible = false;
|
||||
}
|
||||
else
|
||||
{
|
||||
this.SetEnablePassword(false);
|
||||
this.buttonDelete.Visible = true;
|
||||
this.buttonResetPW.Visible = true;
|
||||
}
|
||||
|
||||
|
|
|
@ -21,7 +21,10 @@
|
|||
- Framework : SmartX Framework V3.1.1(update: 2019.03.21)
|
||||
- FormMenu
|
||||
UpdateDisplayMenuAccess()
|
||||
NotLogin 수정
|
||||
NotLogin 수정
|
||||
- 유저설정
|
||||
Level3 본인에 한해서 비밀번호 변경 가능하도록 수정
|
||||
admin을 제외한 다른 유저는 Reset만 가능
|
||||
|
||||
@ Ver 11.3.0 by LSJ
|
||||
- 2024.08.14
|
||||
|
|
Loading…
Reference in New Issue