From 1121488438b9a2964b09f16a5f9fb2d85316008c Mon Sep 17 00:00:00 2001 From: mattesony <49170923+mattesony@users.noreply.github.com> Date: Tue, 1 Nov 2022 04:16:58 -0700 Subject: [PATCH] Removed penalty for old age --- src/core/PasswordHealth.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/core/PasswordHealth.cpp b/src/core/PasswordHealth.cpp index 16c602dbd..1d23c8840 100644 --- a/src/core/PasswordHealth.cpp +++ b/src/core/PasswordHealth.cpp @@ -202,8 +202,6 @@ QSharedPointer HealthChecker::evaluate(const Entry* entry) const int age = entry->getPasswordAgeInDays(); int ageInYears = age / 365; if (ageInYears > 1) { - constexpr auto penalty = 5; - health->adjustScore(-penalty * ageInYears); health->addScoreReason(QObject::tr("Password is %1 year(s) old", "", ageInYears).arg(ageInYears)); }