add totp to import/export

This commit is contained in:
Kyle Spearrin 2017-07-13 11:22:16 -04:00
parent f761733d0b
commit 38883b9550
3 changed files with 7 additions and 1 deletions

View File

@ -600,6 +600,10 @@ angular
throw 'Encryption key unavailable.';
}
if (encType !== key.encType) {
throw 'encType unavailable.';
}
var keyBuf = key.getBuffers(),
encKey = null;

View File

@ -249,6 +249,7 @@
password: value.password && value.password !== '' ? value.password : null,
notes: value.notes && value.notes !== '' ? value.notes : null,
name: value.name && value.name !== '' ? value.name : '--',
totp: value.totp && value.totp !== '' ? value.totp : null
});
if (addFolder) {

View File

@ -40,7 +40,8 @@
notes: decLogins[i].notes,
folder: decLogins[i].folderId && (decLogins[i].folderId in foldersDict) ?
foldersDict[decLogins[i].folderId].name : null,
favorite: decLogins[i].favorite ? 1 : null
favorite: decLogins[i].favorite ? 1 : null,
totp: decLogins[i].totp
};
exportLogins.push(login);