cmd: abstract getPassPhrase
functions into one (#21219)
* [cmd] Abstract `getPassPhrase` functions into one. * cmd/ethkey: fix compilation failure Co-authored-by: rjl493456442 <garyrong0905@gmail.com>
This commit is contained in:
@ -67,7 +67,7 @@ Change the password of a keyfile.`,
|
||||
}
|
||||
newPhrase = strings.TrimRight(string(content), "\r\n")
|
||||
} else {
|
||||
newPhrase = promptPassphrase(true)
|
||||
newPhrase = utils.GetPassPhrase("", true)
|
||||
}
|
||||
|
||||
// Encrypt the key with the new passphrase.
|
||||
|
Reference in New Issue
Block a user