Merge pull request #1850 from varjolintu/create_totp_attribute

Pass TOTP with credential data to KeePassXC-Browser
This commit is contained in:
TheZ3ro 2018-04-29 18:12:11 +02:00 committed by GitHub
commit 5c7aaf5754
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;