We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8f3c1f6 commit 3b265ebCopy full SHA for 3b265eb
1 file changed
cmd/login.go
@@ -20,7 +20,7 @@ import (
20
"path/filepath"
21
"strings"
22
23
- "github.com/howeyc/gopass"
+ "golang.org/x/term"
24
"github.com/pkg/errors"
25
"github.com/spf13/cobra"
26
"github.com/spf13/viper"
@@ -146,7 +146,7 @@ func (c *LoginCmd) maybeGetPassword() error {
146
if c.password == "" {
147
fmt.Printf("Password: ")
148
149
- p, err := gopass.GetPasswdMasked()
+ p, err := term.ReadPassword(int(os.Stdin.Fd()))
150
if err != nil {
151
return err
152
}
0 commit comments