Use new TOTP structure when importing 1Password Vault

* Fixes #3999
This commit is contained in:
Jonathan White committed 2020-01-03 18:08:24 -05:00
1 parent 9ab531473a
commit 181ad76ec9
1 file changed
+1 -1
+1 -1
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") {