diff --git a/EduNetworkBuilder/PersonClass.cs b/EduNetworkBuilder/PersonClass.cs index ed464a3..078a12b 100644 --- a/EduNetworkBuilder/PersonClass.cs +++ b/EduNetworkBuilder/PersonClass.cs @@ -32,7 +32,7 @@ namespace EduNetworkBuilder /// public string FullName = ""; - string Password = ""; + public string Password = ""; string PasswordHint = ""; /// diff --git a/EduNetworkBuilder/PersonProfileForm.cs b/EduNetworkBuilder/PersonProfileForm.cs index bedcefd..ed14575 100644 --- a/EduNetworkBuilder/PersonProfileForm.cs +++ b/EduNetworkBuilder/PersonProfileForm.cs @@ -343,10 +343,10 @@ namespace EduNetworkBuilder private void btnChangePassword_Click(object sender, EventArgs e) { string OldPassword = ""; - if (CurrentUser.Password() != "") + if (CurrentUser.Password != "") { OldPassword = NB.TextPromptBox(NB.Translate("PPF_OldPassword"), Properties.Resources.NBIco, true); - if(OldPassword != CurrentUser.Password()) + if(OldPassword != CurrentUser.Password) { MessageBox.Show(NB.Translate("PPF_PassMismatch")); return;