Skip to content

Commit 3b265eb

Browse files
committed
Avoid howeyc/gopass
1 parent 8f3c1f6 commit 3b265eb

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

cmd/login.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ import (
2020
"path/filepath"
2121
"strings"
2222

23-
"github.com/howeyc/gopass"
23+
"golang.org/x/term"
2424
"github.com/pkg/errors"
2525
"github.com/spf13/cobra"
2626
"github.com/spf13/viper"
@@ -146,7 +146,7 @@ func (c *LoginCmd) maybeGetPassword() error {
146146
if c.password == "" {
147147
fmt.Printf("Password: ")
148148

149-
p, err := gopass.GetPasswdMasked()
149+
p, err := term.ReadPassword(int(os.Stdin.Fd()))
150150
if err != nil {
151151
return err
152152
}

0 commit comments

Comments
 (0)