bwpass: Ignore non-login entries

Bitwarden can store multiple different types of items in the vault, such
as credit cards and "secure notes."  These are not useful in the context
of `bwpass`, so they can be ignored when loading items from the vault.
master
Dustin 2019-04-30 17:37:32 -05:00
parent 4fa8b96606
commit 481da11776
1 changed files with 2 additions and 0 deletions

View File

@ -141,6 +141,8 @@ class Vault:
for folder in json.loads(self._run('list', 'folders')):
folders[folder['id']] = folder['name']
for item in json.loads(self._run('list', 'items')):
if item['type'] != 1:
continue
if item['folderId'] is None:
key = item['name']
else: