lockbox

password manager
Log | Files | Refs | README | LICENSE

commit 03474c5cdfe847ff9540afc64b335a53cf90e2ed
parent c06f431d13f94c87941fb762a0675e903a1a2c52
Author: Sean Enck <sean@ttypty.com>
Date:   Sat,  1 Oct 2022 11:23:04 -0400

fixing some bugs

Diffstat:
Minternal/subcommands/totp.go | 3++-
Mtests/expected.log | 2+-
2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/internal/subcommands/totp.go b/internal/subcommands/totp.go @@ -6,6 +6,7 @@ import ( "fmt" "os" "os/exec" + "path/filepath" "strconv" "strings" "time" @@ -93,7 +94,7 @@ func display(token string, args cli.Arguments) error { if err != nil { return err } - entity, err := t.Get(token, backend.SecretValue) + entity, err := t.Get(filepath.Join(token, totpEnv()), backend.SecretValue) if err != nil { return err } diff --git a/tests/expected.log b/tests/expected.log @@ -14,7 +14,7 @@ test3 test4 test/totp -totp command failure (object does not exist) +XXXXXX keys/one2: hash:7465737432cf83e1357eefb8bdf1542850d66d8007d620e4050b5715dc83f4a921d36ce9ce47d0d13c5d85f2b0ff8318d2877eec2f63b931bd47417a81a538327af927da3e keys2/three: