diff options
author | Tim L <timo614@gmail.com> | 2017-11-06 11:42:57 -0500 |
---|---|---|
committer | Tim L <timo614@gmail.com> | 2017-11-15 13:21:55 -0500 |
commit | ef941855ae38717dc133dbe60e1725d89c2a9cda (patch) | |
tree | 39ea7e298a2c32722610fe8815a7131dfd0fe3f2 /src/wallet/wallet2.cpp | |
parent | Merge pull request #2818 (diff) | |
download | monero-ef941855ae38717dc133dbe60e1725d89c2a9cda.tar.xz |
Wallet RPC: Add prompt-for-password flag
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 00b096b88..07601af3d 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); } |