Exemple #1
0
 private void butOK_Click(object sender, System.EventArgs e)
 {
     Debug.WriteLine(UserodB.EncryptPassword(textMasterPass.Text));
     if (!UserodB.CheckPassword(textMasterPass.Text, masterHash))
     {
         MessageBox.Show(Lan.g(this, "Master password incorrect."));
         return;
     }
     Security.ResetPassword();
     //PermissionsOld.Refresh();
     //MessageBox.Show(Lan.g(this,"Security Administration permission has been reset."));
     //DialogResult=DialogResult.OK;
 }
Exemple #2
0
 private void butOK_Click(object sender, System.EventArgs e)
 {
     if (Userods.Listt[listUser.SelectedIndex].Password != "")
     {
         if (!UserodB.CheckPassword(textPassword.Text, Userods.Listt[listUser.SelectedIndex].Password))
         {
             MsgBox.Show(this, "Incorrect password");
             return;
         }
     }
     Security.CurUser = Userods.Listt[listUser.SelectedIndex].Copy();
     //SecurityLogs.MakeLogEntry(Permissions.StartupSingleUser,"");
     DialogResult = DialogResult.OK;
 }
Exemple #3
0
        private void butOK_Click(object sender, System.EventArgs e)
        {
            Userod selectedUser = (Userod)listUser.SelectedItem;

            if (selectedUser.Password != "")
            {
                if (!UserodB.CheckPassword(textPassword.Text, selectedUser.Password))
                {
                    MsgBox.Show(this, "Incorrect password");
                    return;
                }
            }
            Security.CurUser = selectedUser.Copy();
            DialogResult     = DialogResult.OK;
        }