mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-24 21:56:43 +00:00
Merge 9fbf557d24 into 506c927791
This commit is contained in:
commit
c701aaa869
1 changed files with 1 additions and 0 deletions
|
|
@ -91,6 +91,7 @@ func PromptPassword(prompt string, warnTerm bool) (string, error) {
|
|||
}
|
||||
fmt.Print(prompt)
|
||||
input, err := bufio.NewReader(os.Stdin).ReadString('\n')
|
||||
input = strings.TrimRight(input, "\n")
|
||||
fmt.Println()
|
||||
return input, err
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue