1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-11-24 12:06:15 +01:00

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.'; throw 'Encryption key unavailable.';
} }
if (encType !== key.encType) {
throw 'encType unavailable.';
}
var keyBuf = key.getBuffers(), var keyBuf = key.getBuffers(),
encKey = null; encKey = null;

View File

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

View File

@ -40,7 +40,8 @@
notes: decLogins[i].notes, notes: decLogins[i].notes,
folder: decLogins[i].folderId && (decLogins[i].folderId in foldersDict) ? folder: decLogins[i].folderId && (decLogins[i].folderId in foldersDict) ?
foldersDict[decLogins[i].folderId].name : null, 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); exportLogins.push(login);