mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2026-03-11 08:54:48 +00:00
Update password count discrepancy fix
This commit is contained in:
parent
3a854f803a
commit
59df1d0d7c
1 changed files with 5 additions and 4 deletions
|
|
@ -151,12 +151,13 @@ QSharedPointer<PasswordHealth> HealthChecker::evaluate(const Entry* entry) const
|
|||
health->adjustScore(-penalty * (count - 1));
|
||||
health->addScoreReason(QObject::tr("Password is used %1 time(s)", "", count).arg(QString::number(count)));
|
||||
// Add the first 20 uses of the password to prevent the details display from growing too large
|
||||
for (int i = 0; i < (count < 20 ? count : 20); ++i) {
|
||||
for (int i = 0; i < used.size(); ++i) {
|
||||
if (i == 20) {
|
||||
health->addScoreDetails("…");
|
||||
break;
|
||||
}
|
||||
health->addScoreDetails(used[i]);
|
||||
}
|
||||
if (count > 20) {
|
||||
health->addScoreDetails("...");
|
||||
}
|
||||
|
||||
// Don't allow re-used passwords to be considered "good"
|
||||
// no matter how great their entropy is.
|
||||
|
|
|
|||
Loading…
Reference in a new issue