From 2110ae4d3322229d137c5187e6f5e4aaecc8de4a Mon Sep 17 00:00:00 2001 From: varjolintu Date: Mon, 16 Apr 2018 11:41:45 +0300 Subject: [PATCH] Create KPH attribute for browser integration --- src/browser/BrowserService.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/browser/BrowserService.cpp b/src/browser/BrowserService.cpp index 331bc6b78..77c89ef02 100644 --- a/src/browser/BrowserService.cpp +++ b/src/browser/BrowserService.cpp @@ -607,6 +607,10 @@ QJsonObject BrowserService::prepareEntry(const Entry* entry) res["name"] = entry->resolveMultiplePlaceholders(entry->title()); res["uuid"] = entry->resolveMultiplePlaceholders(entry->uuid().toHex()); + if (entry->hasTotp()) { + res["totp"] = entry->totp(); + } + if (BrowserSettings::supportKphFields()) { const EntryAttributes* attr = entry->attributes(); QJsonArray stringFields;