From 481da11776bf90ed450ac327ad16ae820257c4b2 Mon Sep 17 00:00:00 2001 From: "Dustin C. Hatch" Date: Tue, 30 Apr 2019 17:37:32 -0500 Subject: [PATCH] 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. --- src/bwpass.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/bwpass.py b/src/bwpass.py index baf7488..752d823 100644 --- a/src/bwpass.py +++ b/src/bwpass.py @@ -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: