Passkeys: Fix showing correct username in the reports

This commit is contained in:
varjolintu 2024-06-20 19:33:44 +03:00 committed by Jonathan White
parent 1f9c25cc91
commit e6db2ce3b9

View File

@ -19,6 +19,7 @@
#include "ui_ReportsWidgetPasskeys.h" #include "ui_ReportsWidgetPasskeys.h"
#include "browser/BrowserPasskeys.h" #include "browser/BrowserPasskeys.h"
#include "browser/PasskeyUtils.h"
#include "core/AsyncTask.h" #include "core/AsyncTask.h"
#include "core/Group.h" #include "core/Group.h"
#include "core/Metadata.h" #include "core/Metadata.h"
@ -132,7 +133,7 @@ void ReportsWidgetPasskeys::addPasskeyRow(Group* group, Entry* entry)
auto row = QList<QStandardItem*>(); auto row = QList<QStandardItem*>();
row << new QStandardItem(Icons::entryIconPixmap(entry), title); row << new QStandardItem(Icons::entryIconPixmap(entry), title);
row << new QStandardItem(Icons::groupIconPixmap(group), group->hierarchy().join("/")); row << new QStandardItem(Icons::groupIconPixmap(group), group->hierarchy().join("/"));
row << new QStandardItem(entry->username()); row << new QStandardItem(passkeyUtils()->getUsernameFromEntry(entry));
row << new QStandardItem(entry->attributes()->value(BrowserPasskeys::KPEX_PASSKEY_RELYING_PARTY)); row << new QStandardItem(entry->attributes()->value(BrowserPasskeys::KPEX_PASSKEY_RELYING_PARTY));
row << new QStandardItem(urlList.join('\n')); row << new QStandardItem(urlList.join('\n'));