Add the name of the group to the results for browser extensions

Fixes #466

So it can be displayed in the autocomplete list when more than
one login matches. For users that use groups and have similar names
for multiple logins but organized in different groups
This commit is contained in:
Timo Ulich 2020-01-03 22:58:17 +01:00 committed by Jonathan White
parent ca471e9986
commit a6c3c118a7

View File

@ -859,6 +859,7 @@ QJsonObject BrowserService::prepareEntry(const Entry* entry)
res["password"] = entry->resolveMultiplePlaceholders(entry->password());
res["name"] = entry->resolveMultiplePlaceholders(entry->title());
res["uuid"] = entry->resolveMultiplePlaceholders(entry->uuidToHex());
res["group"] = entry->resolveMultiplePlaceholders(entry->group()->name());
if (entry->hasTotp()) {
res["totp"] = entry->totp();