1
0
mirror of https://github.com/bitwarden/browser.git synced 2025-02-01 23:01:28 +01:00

enpass import TOTP field resolves #8

This commit is contained in:
Kyle Spearrin 2017-08-11 23:31:48 -04:00
parent 2272bcac71
commit bf382889d3

View File

@ -1262,7 +1262,8 @@
uri: null,
password: null,
username: null,
notes: note && note !== '' ? note : null
notes: note && note !== '' ? note : null,
totp: null
};
if (row.length > 2 && (row.length % 2) === 0) {
@ -1284,6 +1285,9 @@
else if (fieldLower === 'password' && !login.password) {
login.password = value;
}
else if (fieldLower === 'totp' && !login.totp) {
login.totp = value;
}
else {
// other custom fields
login.notes = login.notes === null ? field + ': ' + value