add totp to import/export
This commit is contained in:
parent
f761733d0b
commit
38883b9550
|
@ -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;
|
||||||
|
|
||||||
|
|
|
@ -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) {
|
||||||
|
|
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue