Skip to content

Commit

Permalink
fix(api): no password on keyring file, it's annoying as heck
Browse files Browse the repository at this point in the history
  • Loading branch information
aybabtme committed Oct 21, 2024
1 parent 3499570 commit 0233994
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions cmd/humanlog/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ import (
"github.com/99designs/keyring"
"github.com/aybabtme/rgbterm"
"github.com/blang/semver"
"github.com/charmbracelet/huh"
types "github.com/humanlogio/api/go/types/v1"
"github.com/humanlogio/humanlog"
"github.com/humanlogio/humanlog/internal/pkg/config"
Expand Down Expand Up @@ -249,12 +248,7 @@ func newApp() *cli.App {
KeychainSynchronizable: true,
FileDir: stateDir,
FilePasswordFunc: func(s string) (pwd string, err error) {
err = huh.NewInput().
EchoMode(huh.EchoModePassword).
Title("Saving humanlog.io credentials...").
Description("Choose a password to encrypt your credentials").
Value(&pwd).Run()
return pwd, err
return "", nil
},
})

Expand Down

0 comments on commit 0233994

Please sign in to comment.