Wallet RPC: Add prompt-for-password flag

This commit is contained in:
Tim L
2017-11-06 11:42:57 -05:00
parent dc6a8014bd
commit ef941855ae
2 changed files with 10 additions and 5 deletions
+2
View File
@@ -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);
}