Skip to content

Commit

Permalink
Health Check: Skip entries that have a known bad password
Browse files Browse the repository at this point in the history
  • Loading branch information
wolframroesler committed Mar 29, 2020
1 parent 4374fe8 commit 0fbf6ea
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/gui/reports/ReportsWidgetHealthcheck.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@

#include "core/AsyncTask.h"
#include "core/Database.h"
#include "core/Global.h"
#include "core/Group.h"
#include "core/PasswordHealth.h"
#include "core/Resources.h"
Expand Down Expand Up @@ -86,6 +87,12 @@ Health::Health(QSharedPointer<Database> db)
continue;
}

// Skip entries that are flagged as having a known bad password
if (entry->customData()->contains(PasswordHealth::OPTION_KNOWN_BAD_PASSWD)
&& entry->customData()->value(PasswordHealth::OPTION_KNOWN_BAD_PASSWD) == TRUE_STR) {
continue;
}

// Add entry if its password isn't at least "good"
const auto item = QSharedPointer<Item>(new Item(group, entry, m_checker.evaluate(entry)));
if (item->health->quality() < PasswordHealth::Quality::Good) {
Expand Down

0 comments on commit 0fbf6ea

Please sign in to comment.