aboutsummaryrefslogtreecommitdiffstats
path: root/cmd/geth/accountcmd.go
diff options
context:
space:
mode:
authorPéter Szilágyi <peterke@gmail.com>2016-05-31 16:48:08 +0800
committerPéter Szilágyi <peterke@gmail.com>2016-05-31 16:48:08 +0800
commit7b662103a026ee96667c8cad96dc952b7896a8af (patch)
tree19a9e7fce54c7cba0fe9c81a272d3c500f116bad /cmd/geth/accountcmd.go
parent5c39a1bb26813d05244a5408b20fb0b38c10c8b2 (diff)
parentda729e5b386ca0fd32344dcc1fd63d14c0bb39ab (diff)
downloaddexon-7b662103a026ee96667c8cad96dc952b7896a8af.tar
dexon-7b662103a026ee96667c8cad96dc952b7896a8af.tar.gz
dexon-7b662103a026ee96667c8cad96dc952b7896a8af.tar.bz2
dexon-7b662103a026ee96667c8cad96dc952b7896a8af.tar.lz
dexon-7b662103a026ee96667c8cad96dc952b7896a8af.tar.xz
dexon-7b662103a026ee96667c8cad96dc952b7896a8af.tar.zst
dexon-7b662103a026ee96667c8cad96dc952b7896a8af.zip
Merge pull request #2535 from karalabe/modularize-console
cmd, console: split off the console into a reusable package
Diffstat (limited to 'cmd/geth/accountcmd.go')
-rw-r--r--cmd/geth/accountcmd.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/cmd/geth/accountcmd.go b/cmd/geth/accountcmd.go
index bf754c72f..0f9d95c2c 100644
--- a/cmd/geth/accountcmd.go
+++ b/cmd/geth/accountcmd.go
@@ -23,6 +23,7 @@ import (
"github.com/codegangsta/cli"
"github.com/ethereum/go-ethereum/accounts"
"github.com/ethereum/go-ethereum/cmd/utils"
+ "github.com/ethereum/go-ethereum/console"
"github.com/ethereum/go-ethereum/crypto"
"github.com/ethereum/go-ethereum/logger"
"github.com/ethereum/go-ethereum/logger/glog"
@@ -215,12 +216,12 @@ func getPassPhrase(prompt string, confirmation bool, i int, passwords []string)
if prompt != "" {
fmt.Println(prompt)
}
- password, err := utils.Stdin.PasswordPrompt("Passphrase: ")
+ password, err := console.Stdin.PromptPassword("Passphrase: ")
if err != nil {
utils.Fatalf("Failed to read passphrase: %v", err)
}
if confirmation {
- confirm, err := utils.Stdin.PasswordPrompt("Repeat passphrase: ")
+ confirm, err := console.Stdin.PromptPassword("Repeat passphrase: ")
if err != nil {
utils.Fatalf("Failed to read passphrase confirmation: %v", err)
}