Use new TOTP structure when importing 1Password Vault

* Fixes #3999
This commit is contained in:
Jonathan White 2019-12-31 12:39:18 -05:00
parent 9ab531473a
commit 181ad76ec9

View File

@ -83,7 +83,7 @@ void OpVaultReader::fillFromSectionField(Entry* entry, const QString& sectionNam
}
attrValue = query.toString(QUrl::FullyEncoded);
}
entry->attributes()->set(Totp::ATTRIBUTE_SETTINGS, attrValue, true);
entry->setTotp(Totp::parseSettings(attrValue));
} else if (attrName.startsWith("expir", Qt::CaseInsensitive)) {
QDateTime expiry;
if (kind == "date") {