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
1 changed files with 4 additions and 0 deletions

View File

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