fix(crypto): correct cipher type indices to match Bitwarden API
This commit is contained in:
+1
-1
@@ -383,7 +383,7 @@ class BitwardenClient:
|
||||
# Decrypt ciphers
|
||||
decrypted_ciphers = []
|
||||
for cipher in ciphers:
|
||||
if cipher.get("type") in [1, 2, 3, 4]: # Login, Note, Card, Identity
|
||||
if cipher.get("type") in [0, 1, 2, 3]: # Login, Note, Card, Identity
|
||||
decrypted = self.crypto.decrypt_cipher(
|
||||
cipher, enc_key, mac_key
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user