diff options
author | Riccardo Spagni <ric@spagni.net> | 2017-11-20 12:08:31 +0900 |
---|---|---|
committer | Riccardo Spagni <ric@spagni.net> | 2017-11-20 12:08:31 +0900 |
commit | 8d9e4920fc1d1722715559781434f4826018b722 (patch) | |
tree | e94126bdabd2b237a25400f257e98cfa58a4c68f /src/wallet/wallet2.cpp | |
parent | Merge pull request #2487 (diff) | |
parent | Wallet RPC: Add prompt-for-password flag (diff) | |
download | monero-8d9e4920fc1d1722715559781434f4826018b722.tar.xz |
Merge pull request #2768
ef941855 Wallet RPC: Add prompt-for-password flag (Tim L)
Diffstat (limited to 'src/wallet/wallet2.cpp')
-rw-r--r-- | src/wallet/wallet2.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/wallet/wallet2.cpp b/src/wallet/wallet2.cpp index 8bc762184..c4124a677 100644 --- a/src/wallet/wallet2.cpp +++ b/src/wallet/wallet2.cpp @@ -202,6 +202,8 @@ boost::optional<tools::password_container> get_password(const boost::program_opt return {tools::password_container{std::move(password)}}; } + THROW_WALLET_EXCEPTION_IF(!password_prompter, tools::error::wallet_internal_error, tools::wallet2::tr("no password specified; use --prompt-for-password to prompt for a password")); + return password_prompter(verify ? tr("Enter new wallet password") : tr("Wallet password"), verify); } |