Skip to content

Commit

Permalink
Merge pull request #1350 from shivakumargn/patch-1
Browse files Browse the repository at this point in the history
Update terminal.go for windows os
  • Loading branch information
ernado committed Apr 3, 2024
2 parents 9d1ebee + b777b73 commit 1617757
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/terminal.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ func (a Terminal) Phone(_ context.Context) (string, error) {

func (Terminal) Password(_ context.Context) (string, error) {
fmt.Print("Enter 2FA password: ")
bytePwd, err := term.ReadPassword(syscall.Stdin)
bytePwd, err := term.ReadPassword(int(syscall.Stdin))
if err != nil {
return "", err
}
Expand Down

0 comments on commit 1617757

Please sign in to comment.