Skip to content

Commit

Permalink
expose additionally raw value
Browse files Browse the repository at this point in the history
  • Loading branch information
v-braun committed Apr 16, 2022
1 parent 77134de commit ef388a0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions pkg/enpass/card.go
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ type Card struct {
LastUsed int64
Sensitive bool
Icon string
RawValue string

// encrypted
value string
Expand Down
2 changes: 2 additions & 0 deletions pkg/enpass/vault.go
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,8 @@ func (v *Vault) GetEntries(cardType string, filters []string) ([]Card, error) {
return nil, errors.Wrap(err, "could not read card from database")
}

card.RawValue = card.value

// if item has been deleted
if card.IsDeleted() {
continue
Expand Down

0 comments on commit ef388a0

Please sign in to comment.