aboutsummaryrefslogtreecommitdiff
path: root/src/wallet/wallet2.cpp
diff options
context:
space:
mode:
authormoneromooo-monero <moneromooo-monero@users.noreply.github.com>2017-03-05 14:52:38 +0000
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2017-03-05 14:53:46 +0000
commit4b48565c9e8615028cae2c5c1cd4bddac03d5ffb (patch)
treed5850d104bb03a1861ff79b5aa1c5a9fe8f0b80b /src/wallet/wallet2.cpp
parentMerge pull request #1837 (diff)
downloadmonero-4b48565c9e8615028cae2c5c1cd4bddac03d5ffb.tar.xz
wallet: add password command
Also tweak wallet2 password code to verify password without saying it's a new wallet, because it's assuming things.
Diffstat (limited to '')
-rw-r--r--src/wallet/wallet2.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/wallet/wallet2.cpp b/src/wallet/wallet2.cpp
index 888c158c5..523c07696 100644
--- a/src/wallet/wallet2.cpp
+++ b/src/wallet/wallet2.cpp
@@ -452,10 +452,10 @@ void wallet2::init_options(boost::program_options::options_description& desc_par
command_line::add_arg(desc_params, opts.restricted);
}
-boost::optional<password_container> wallet2::password_prompt(const bool is_new_wallet)
+boost::optional<password_container> wallet2::password_prompt(const bool new_password)
{
auto pwd_container = tools::password_container::prompt(
- is_new_wallet, (is_new_wallet ? tr("Enter a password for your new wallet") : tr("Wallet password"))
+ new_password, (new_password ? tr("Enter new wallet password") : tr("Wallet password"))
);
if (!pwd_container)
{