1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-12-23 16:38:45 +01:00

import totp keys from 1password 1pif export

This commit is contained in:
Kyle Spearrin 2017-08-12 12:06:00 -04:00
parent bf382889d3
commit ae567ab462

View File

@ -770,6 +770,9 @@
else if (!login.password && field[designationKey] && field[designationKey] === 'password') {
login.password = field[valueKey];
}
else if (!login.totp && field[designationKey] && field[designationKey].startsWith("TOTP_")) {
login.totp = field[valueKey];
}
else if (field[nameKey] && field[valueKey]) {
if (login.notes === null) {
login.notes = '';
@ -803,6 +806,7 @@
password: null,
notes: null,
name: item.title && item.title !== '' ? item.title : '--',
totp: null
};
if (item.secureContents) {