1
0
mirror of https://github.com/bitwarden/web synced 2025-12-10 13:23:15 +00: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, uri: null,
password: null, password: null,
username: null, username: null,
notes: note && note !== '' ? note : null notes: note && note !== '' ? note : null,
totp: null
}; };
if (row.length > 2 && (row.length % 2) === 0) { if (row.length > 2 && (row.length % 2) === 0) {
@@ -1284,6 +1285,9 @@
else if (fieldLower === 'password' && !login.password) { else if (fieldLower === 'password' && !login.password) {
login.password = value; login.password = value;
} }
else if (fieldLower === 'totp' && !login.totp) {
login.totp = value;
}
else { else {
// other custom fields // other custom fields
login.notes = login.notes === null ? field + ': ' + value login.notes = login.notes === null ? field + ': ' + value