aboutsummaryrefslogtreecommitdiffstats
path: root/cmd/geth/accountcmd.go
diff options
context:
space:
mode:
authorPéter Szilágyi <peterke@gmail.com>2016-05-30 22:30:17 +0800
committerPéter Szilágyi <peterke@gmail.com>2016-05-31 15:59:38 +0800
commitda729e5b386ca0fd32344dcc1fd63d14c0bb39ab (patch)
tree4580f73272390fd4c9d6cbaf00ae523ef745a3cf /cmd/geth/accountcmd.go
parent14ae5708d61059d424c9be9822b85a3f4bb392b3 (diff)
downloadgo-tangerine-da729e5b386ca0fd32344dcc1fd63d14c0bb39ab.tar
go-tangerine-da729e5b386ca0fd32344dcc1fd63d14c0bb39ab.tar.gz
go-tangerine-da729e5b386ca0fd32344dcc1fd63d14c0bb39ab.tar.bz2
go-tangerine-da729e5b386ca0fd32344dcc1fd63d14c0bb39ab.tar.lz
go-tangerine-da729e5b386ca0fd32344dcc1fd63d14c0bb39ab.tar.xz
go-tangerine-da729e5b386ca0fd32344dcc1fd63d14c0bb39ab.tar.zst
go-tangerine-da729e5b386ca0fd32344dcc1fd63d14c0bb39ab.zip
cmd/geth, console: fix reviewer issues
Diffstat (limited to 'cmd/geth/accountcmd.go')
-rw-r--r--cmd/geth/accountcmd.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/cmd/geth/accountcmd.go b/cmd/geth/accountcmd.go
index a9cee20ee..0f9d95c2c 100644
--- a/cmd/geth/accountcmd.go
+++ b/cmd/geth/accountcmd.go
@@ -216,12 +216,12 @@ func getPassPhrase(prompt string, confirmation bool, i int, passwords []string)
if prompt != "" {
fmt.Println(prompt)
}
- password, err := console.TerminalPrompter.PromptPassword("Passphrase: ")
+ password, err := console.Stdin.PromptPassword("Passphrase: ")
if err != nil {
utils.Fatalf("Failed to read passphrase: %v", err)
}
if confirmation {
- confirm, err := console.TerminalPrompter.PromptPassword("Repeat passphrase: ")
+ confirm, err := console.Stdin.PromptPassword("Repeat passphrase: ")
if err != nil {
utils.Fatalf("Failed to read passphrase confirmation: %v", err)
}