From a8b14c959f9ea9ac95c38eaaa3b548a36c12be0e Mon Sep 17 00:00:00 2001 From: Samuel Lorch Date: Mon, 30 May 2022 17:51:10 +0200 Subject: [PATCH] use golang.org/x/term instead of depricated golang.org/x/crypto/ssh/terminal --- util/client.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/util/client.go b/util/client.go index 2cf142d..15422e6 100644 --- a/util/client.go +++ b/util/client.go @@ -14,18 +14,17 @@ import ( "github.com/passbolt/go-passbolt/api" "github.com/passbolt/go-passbolt/helper" "github.com/spf13/viper" - "golang.org/x/crypto/ssh/terminal" "golang.org/x/term" ) func readPassword() (string, error) { var fd int var pass []byte - if terminal.IsTerminal(syscall.Stdin) { + if term.IsTerminal(syscall.Stdin) { fmt.Print("Enter Password:") fd = syscall.Stdin - inputPass, err := terminal.ReadPassword(fd) + inputPass, err := term.ReadPassword(fd) if err != nil { return "", err }