Skip to content

Commit

Permalink
switch to term package
Browse files Browse the repository at this point in the history
  • Loading branch information
qbit committed Dec 10, 2021
1 parent a86c07b commit 0ea90c5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@ require (
golang.org/x/crypto v0.0.0-20211202192323-5770296d904e
golang.org/x/net v0.0.0-20211205041911-012df41ee64c
golang.org/x/sys v0.0.0-20211205182925-97ca703d548d // indirect
golang.org/x/term v0.0.0-20210927222741-03fcf44c2211 // indirect
golang.org/x/term v0.0.0-20210927222741-03fcf44c2211
suah.dev/protect v1.2.0
)
4 changes: 2 additions & 2 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ import (
"time"

"golang.org/x/crypto/bcrypt"
"golang.org/x/crypto/ssh/terminal"
"golang.org/x/net/webdav"
"golang.org/x/term"
"suah.dev/protect"
)

Expand Down Expand Up @@ -162,7 +162,7 @@ func prompt(prompt string, secure bool) (string, error) {
fmt.Print(prompt)

if secure {
b, err := terminal.ReadPassword(int(os.Stdin.Fd()))
b, err := term.ReadPassword(int(os.Stdin.Fd()))
if err != nil {
return "", err
}
Expand Down

0 comments on commit 0ea90c5

Please sign in to comment.