mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2024-10-01 01:26:01 -04:00
Passkeys: Fix incorrect username fill
This commit is contained in:
parent
40f4428e36
commit
ad8a00d56b
@ -1151,13 +1151,7 @@ void BrowserService::denyEntry(Entry* entry, const QString& siteHost, const QStr
|
||||
QJsonObject BrowserService::prepareEntry(const Entry* entry)
|
||||
{
|
||||
QJsonObject res;
|
||||
#ifdef WITH_XC_BROWSER_PASSKEYS
|
||||
// Use Passkey's username instead if found
|
||||
res["login"] = entry->hasPasskey() ? passkeyUtils()->getUsernameFromEntry(entry)
|
||||
: entry->resolveMultiplePlaceholders(entry->username());
|
||||
#else
|
||||
res["login"] = entry->resolveMultiplePlaceholders(entry->username());
|
||||
#endif
|
||||
res["password"] = entry->resolveMultiplePlaceholders(entry->password());
|
||||
res["name"] = entry->resolveMultiplePlaceholders(entry->title());
|
||||
res["uuid"] = entry->resolveMultiplePlaceholders(entry->uuidToHex());
|
||||
|
Loading…
Reference in New Issue
Block a user