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.
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user