관리자는 사용자 계정 암호 변경시 oldpassword 를 묻지 않습니다.
This commit is contained in:
@@ -20,12 +20,19 @@ namespace Project._Common
|
||||
|
||||
private void fNewPassword_Load(object sender, EventArgs e)
|
||||
{
|
||||
//일반사용자의경우에는 상태를 변경하지 못한다.
|
||||
int curLevel = Math.Max(FCOMMON.info.Login.level, FCOMMON.DBM.getAuth(FCOMMON.DBM.eAuthType.account));
|
||||
if (curLevel >= 5)
|
||||
tbPassO.Enabled = false;
|
||||
else
|
||||
tbPassO.Enabled = true;
|
||||
|
||||
newpassword = string.Empty;
|
||||
}
|
||||
|
||||
private void button1_Click(object sender, EventArgs e)
|
||||
{
|
||||
if(tbPassO.Text.isEmpty())
|
||||
if(tbPassO.Enabled && tbPassO.Text.isEmpty())
|
||||
{
|
||||
Util.MsgE("OLd Password Error");
|
||||
tbPassO.Focus();
|
||||
|
||||
Reference in New Issue
Block a user