Skip to content

Commit ef388a0

Browse files
committedApr 16, 2022
expose additionally raw value
1 parent 77134de commit ef388a0

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed
 

‎pkg/enpass/card.go

+1
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ type Card struct {
7474
LastUsed int64
7575
Sensitive bool
7676
Icon string
77+
RawValue string
7778

7879
// encrypted
7980
value string

‎pkg/enpass/vault.go

+2
Original file line numberDiff line numberDiff line change
@@ -217,6 +217,8 @@ func (v *Vault) GetEntries(cardType string, filters []string) ([]Card, error) {
217217
return nil, errors.Wrap(err, "could not read card from database")
218218
}
219219

220+
card.RawValue = card.value
221+
220222
// if item has been deleted
221223
if card.IsDeleted() {
222224
continue

0 commit comments

Comments
 (0)
Please sign in to comment.