export and import favorites for bitwarden csv

This commit is contained in:
Kyle Spearrin 2017-04-12 16:12:28 -04:00
parent 5c8117539c
commit 40f9961541
2 changed files with 3 additions and 2 deletions

View File

@ -232,7 +232,7 @@
}
logins.push({
favorite: value.favorite !== null ? value.favorite : false,
favorite: value.favorite && value.favorite !== '' && && value.favorite !== '0',
uri: value.uri && value.uri !== '' ? trimUri(value.uri) : null,
username: value.username && value.username !== '' ? value.username : null,
password: value.password && value.password !== '' ? value.password : null,

View File

@ -17,7 +17,8 @@
username: decLogins[i].username,
password: decLogins[i].password,
notes: decLogins[i].notes,
folder: decLogins[i].folder ? decLogins[i].folder.name : null
folder: decLogins[i].folder ? decLogins[i].folder.name : null,
favorite: decLogins[i].favorite ? 1 : null
};
exportLogins.push(login);