示例#1
0
        private void PwdTouchedHandler(object sender, ObjectTouchedEventArgs e)
        {
            PwEntry pe = sender as PwEntry;

            if (e.Modified)
            {
                if (receivedStatus == false)
                {
                    GetPasswordStatus(pe, GetPasswordHash(pe));

                    if (insecureWarning && PluginOptions.WarningDialog)
                    {
                        MessageBox.Show(PluginOptions.WarningDialogText,
                                        "HIBP Offline Check", MessageBoxButtons.OK, MessageBoxIcon.Warning);
                    }
                }

                if (currentStatus != Status)
                {
                    UpdateStatus(pe);
                }

                ResetState();
            }
        }
        private void PwdTouchedHandler(object sender, ObjectTouchedEventArgs e)
        {
            PwEntry pe = sender as PwEntry;

            if (e.Modified)
            {
                passwordEdited = true;
                PerformCellAction(PluginOptions.ColumnName, pe);
            }
        }
示例#3
0
        private void OnEntryTouched(object sender, ObjectTouchedEventArgs e)
        {
            if (Configuration.SkipRecalc || !Configuration.Active)
            {
                Configuration.SkipRecalc = false;
                return;
            }

            if (!e.Modified)
            {
                return;
            }

            (e.Object as PwEntry).RecalcExpiry();
        }
        private void PwdTouchedHandler(object sender, ObjectTouchedEventArgs e)
        {
            PwEntry pe = sender as PwEntry;

            if (e.Modified)
            {
                if (receivedStatus == false)
                {
                    PasswordEntry = pe;
                    GetPasswordStatus();
                    formEdited = true;
                }

                UpdateStatus();
            }
        }
示例#5
0
 private static void OnObjectTouched(object sender, ObjectTouchedEventArgs e)
 {
     // !e.Modified = Entry was not modified => nothing to do
     if (!e.Modified)
     {
         return;
     }
     if (e.Object is PwEntry)
     {
         Invalidate(e.Object as PwEntry);
     }
     if (e.Object is PwGroup)
     {
         Invalidate(e.Object as PwGroup);
     }
 }
示例#6
0
        private static void OnEntryTouched(object sender, ObjectTouchedEventArgs e)
        {
            // !e.Modified = Entry was not modified => nothing to do
            PwEntry pe = e.Object as PwEntry;

            if (pe == null)
            {
                return;
            }
            OTPHandler_DB h = GetOTPHandler(pe) as OTPHandler_DB;

            if (m_dEntryOTPData.ContainsKey(pe) && (h != null))
            {
                h.UpdateOTPData(pe, true);
            }
            m_dEntryOTPData.Remove(pe);
        }
        private async void PwEntry_TouchedAsync(object o, ObjectTouchedEventArgs e)
        {
            if (!_checkPasswordOnEntryTouched)
            {
                return;
            }

            if (e.Modified && e.Object is PwEntry pwEntry)
            {
                if (CheckEntryIgnoreConditions(pwEntry) != PwEntryIgnoreState.None)
                {
                    return;
                }

                await CheckHaveIBeenPwnedForEntry(pwEntry);
            }
        }
示例#8
0
        private void OnNodeChanged(object sender, ObjectTouchedEventArgs args)
        {
            if (!IsPluginActive() || !m_keeShare.IsInitialized())
            {
                return;
            }
            PwDatabase database = m_keeShare.FindDatabaseFor(sender);

            if (!m_keeShare.Observes(database))
            {
                // KeePass checks the structure at some points (ie. after Save) using a deep copy of the database
                // which we don't want to update or modify
                return;
            }
            PwDatabase database2 = m_keeShare.FindDatabaseFor(sender);
            Changes    changes   = m_keeShare.EnsureValidTree(database);

            UpdateUI(database.RootGroup, changes, true);
        }