mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2026-12-02 23:02:41 -08:00
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:
1 parent
6a534f38c6
commit
e888fec070
4 files changed
+20
-3
No files matched your search
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user