25,8 → 25,7 |
} |
private void txt_Box1_TextChanged(object sender, EventArgs e) |
{ |
// Office password is set here |
if (txt_Password1.Text == "tr33b3@rd") |
if (txt_Password1.Text == Settings_Form.globalAdminPassword) |
{ |
this.txt_Password1.Visible = false; |
this.txt_Password2.Visible = true; |
49,7 → 48,11 |
} |
private void btn_Ok_Click(object sender, EventArgs e) |
{ |
ManageUserAccounts.ChangeUserPassword(selectedUsername, txt_Password2.Text); |
if (!ManageUserAccounts.ChangeUserPassword(selectedUsername, txt_Password2.Text)) |
{ |
DebugText.appendText("Error occured while changing password"); |
MessageBox.Show("Error occured while changing password", "Error"); |
} |
this.Close(); |
} |
} |