Skip to content

Commit

Permalink
Merge pull request #918 from n1hility/fix-win-pass
Browse files Browse the repository at this point in the history
Fix console password reading on Windows
  • Loading branch information
openshift-merge-robot authored Feb 4, 2022
2 parents 08f9799 + e3f4e8f commit ea34809
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/auth/auth.go
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ func getUserAndPass(opts *LoginOptions, password, userFromAuthFile string) (user
}
if password == "" {
fmt.Fprint(opts.Stdout, "Password: ")
pass, err := terminal.ReadPassword(0)
pass, err := terminal.ReadPassword(int(os.Stdin.Fd()))
if err != nil {
return "", "", errors.Wrap(err, "reading password")
}
Expand Down

0 comments on commit ea34809

Please sign in to comment.