aboutsummaryrefslogtreecommitdiffstats
path: root/console
diff options
context:
space:
mode:
authorSjonHortensius <SjonHortensius@users.noreply.github.com>2019-08-12 17:00:38 +0800
committerPéter Szilágyi <peterke@gmail.com>2019-08-12 17:00:38 +0800
commit36994e4e0b2be1362f99048d08b907628088e2bb (patch)
tree2499ca40e033b681e05dc9de19420cddd6adf204 /console
parentc9cdf144d55f6bbd75314e812eeefc18d7e8c40e (diff)
downloadgo-tangerine-36994e4e0b2be1362f99048d08b907628088e2bb.tar
go-tangerine-36994e4e0b2be1362f99048d08b907628088e2bb.tar.gz
go-tangerine-36994e4e0b2be1362f99048d08b907628088e2bb.tar.bz2
go-tangerine-36994e4e0b2be1362f99048d08b907628088e2bb.tar.lz
go-tangerine-36994e4e0b2be1362f99048d08b907628088e2bb.tar.xz
go-tangerine-36994e4e0b2be1362f99048d08b907628088e2bb.tar.zst
go-tangerine-36994e4e0b2be1362f99048d08b907628088e2bb.zip
all: replace passPHRASE with passWORD in user interactions (#19932)
* Ref #19906 - replace passPHRASE with passWORD in any user interactions this skips doccomments and variablenames to minimize impact. It does however include a rename of the `ethkey` `changepassphrase` parameter * console: fix JavaScript error capitalization
Diffstat (limited to 'console')
-rw-r--r--console/bridge.go12
1 files changed, 6 insertions, 6 deletions
diff --git a/console/bridge.go b/console/bridge.go
index bb14abca2..c7a67a685 100644
--- a/console/bridge.go
+++ b/console/bridge.go
@@ -59,14 +59,14 @@ func (b *bridge) NewAccount(call otto.FunctionCall) (response otto.Value) {
switch {
// No password was specified, prompt the user for it
case len(call.ArgumentList) == 0:
- if password, err = b.prompter.PromptPassword("Passphrase: "); err != nil {
+ if password, err = b.prompter.PromptPassword("Password: "); err != nil {
throwJSException(err.Error())
}
- if confirm, err = b.prompter.PromptPassword("Repeat passphrase: "); err != nil {
+ if confirm, err = b.prompter.PromptPassword("Repeat password: "); err != nil {
throwJSException(err.Error())
}
if password != confirm {
- throwJSException("passphrases don't match!")
+ throwJSException("passwords don't match!")
}
// A single string password was specified, use that
@@ -180,7 +180,7 @@ func (b *bridge) OpenWallet(call otto.FunctionCall) (response otto.Value) {
func (b *bridge) readPassphraseAndReopenWallet(call otto.FunctionCall) (otto.Value, error) {
var passwd otto.Value
wallet := call.Argument(0)
- if input, err := b.prompter.PromptPassword("Please enter your passphrase: "); err != nil {
+ if input, err := b.prompter.PromptPassword("Please enter your password: "); err != nil {
throwJSException(err.Error())
} else {
passwd, _ = otto.ToValue(input)
@@ -223,7 +223,7 @@ func (b *bridge) UnlockAccount(call otto.FunctionCall) (response otto.Value) {
if call.Argument(1).IsUndefined() || call.Argument(1).IsNull() {
fmt.Fprintf(b.printer, "Unlock account %s\n", account)
- if input, err := b.prompter.PromptPassword("Passphrase: "); err != nil {
+ if input, err := b.prompter.PromptPassword("Password: "); err != nil {
throwJSException(err.Error())
} else {
passwd, _ = otto.ToValue(input)
@@ -270,7 +270,7 @@ func (b *bridge) Sign(call otto.FunctionCall) (response otto.Value) {
// if the password is not given or null ask the user and ensure password is a string
if passwd.IsUndefined() || passwd.IsNull() {
fmt.Fprintf(b.printer, "Give password for account %s\n", account)
- if input, err := b.prompter.PromptPassword("Passphrase: "); err != nil {
+ if input, err := b.prompter.PromptPassword("Password: "); err != nil {
throwJSException(err.Error())
} else {
passwd, _ = otto.ToValue(input)