mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-12-04 15:39:34 +01:00
Merge pull request #1850 from varjolintu/create_totp_attribute
Pass TOTP with credential data to KeePassXC-Browser
This commit is contained in:
@@ -607,6 +607,10 @@ QJsonObject BrowserService::prepareEntry(const Entry* entry)
|
|||||||
res["name"] = entry->resolveMultiplePlaceholders(entry->title());
|
res["name"] = entry->resolveMultiplePlaceholders(entry->title());
|
||||||
res["uuid"] = entry->resolveMultiplePlaceholders(entry->uuid().toHex());
|
res["uuid"] = entry->resolveMultiplePlaceholders(entry->uuid().toHex());
|
||||||
|
|
||||||
|
if (entry->hasTotp()) {
|
||||||
|
res["totp"] = entry->totp();
|
||||||
|
}
|
||||||
|
|
||||||
if (BrowserSettings::supportKphFields()) {
|
if (BrowserSettings::supportKphFields()) {
|
||||||
const EntryAttributes* attr = entry->attributes();
|
const EntryAttributes* attr = entry->attributes();
|
||||||
QJsonArray stringFields;
|
QJsonArray stringFields;
|
||||||
|
|||||||
Reference in New Issue
Block a user