Fix password strength evaluation for referenced passwords (#13479)

* Also fix password strength in entry view

---------

Co-authored-by: Jonathan White <[email protected]>
This commit is contained in:
ryain11andJonathan White authored and GitHub committed 2026-07-21 12:58:23 -04:00
1 parent 6a534f38c6
commit e888fec070
4 files changed
+20 -3

No files matched your search

+11
View File
@@ -40,6 +40,7 @@
#include "core/Metadata.h"
#include "core/PasswordGenerator.h"
#include "core/TimeDelta.h"
#include "gui/PasswordWidget.h"
#ifdef KPXC_FEATURE_SSHAGENT
#include "sshagent/OpenSSHKey.h"
#include "sshagent/OpenSSHKeyGenDialog.h"
@@ -138,6 +139,16 @@ EditEntryWidget::EditEntryWidget(QWidget* parent)
m_editWidgetProperties->setCustomData(m_customData.data());
m_mainUi->passwordEdit->setQualityVisible(true);
connect(m_mainUi->passwordEdit,
&PasswordWidget::requestPlaceholderResolution,
this,
[this](const QString& rawText, QString& resolvedText) {
if (m_entry) {
// Dereferencing the password of the entry
resolvedText = m_entry->resolveMultiplePlaceholders(rawText);
}
});
}
EditEntryWidget::~EditEntryWidget() = default;