diff options
author | Guillaume Ballet <gballet@gmail.com> | 2019-03-15 06:03:13 +0800 |
---|---|---|
committer | Guillaume Ballet <gballet@gmail.com> | 2019-04-08 19:21:22 +0800 |
commit | 5617dca1c9275d7e00b27b9525a1a757fb60c203 (patch) | |
tree | 1d36ebbe66ad4c6092f308774be7310b40fca6fe /console | |
parent | ae82c58631c05bebdb064ffabf2ce8c974585b34 (diff) | |
download | go-tangerine-5617dca1c9275d7e00b27b9525a1a757fb60c203.tar go-tangerine-5617dca1c9275d7e00b27b9525a1a757fb60c203.tar.gz go-tangerine-5617dca1c9275d7e00b27b9525a1a757fb60c203.tar.bz2 go-tangerine-5617dca1c9275d7e00b27b9525a1a757fb60c203.tar.lz go-tangerine-5617dca1c9275d7e00b27b9525a1a757fb60c203.tar.xz go-tangerine-5617dca1c9275d7e00b27b9525a1a757fb60c203.tar.zst go-tangerine-5617dca1c9275d7e00b27b9525a1a757fb60c203.zip |
Remove the direct dependency on libpcsclite
Instead, use a go library that communicates with pcscd over a socket.
Also update the changes introduced by @gravityblast since this PR's
inception
Diffstat (limited to 'console')
-rw-r--r-- | console/bridge.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/console/bridge.go b/console/bridge.go index b022a465d..bb14abca2 100644 --- a/console/bridge.go +++ b/console/bridge.go @@ -118,9 +118,9 @@ func (b *bridge) OpenWallet(call otto.FunctionCall) (response otto.Value) { throwJSException(err.Error()) } - case strings.HasSuffix(err.Error(), scwallet.ErrPUKNeeded.Error()): + case strings.HasSuffix(err.Error(), scwallet.ErrPairingPasswordNeeded.Error()): // PUK input requested, fetch from the user and call open again - if input, err := b.prompter.PromptPassword("Please enter current PUK: "); err != nil { + if input, err := b.prompter.PromptPassword("Please enter the pairing password: "); err != nil { throwJSException(err.Error()) } else { passwd, _ = otto.ToValue(input) |