aboutsummaryrefslogtreecommitdiff
path: root/src/simplewallet/password_container.cpp
diff options
context:
space:
mode:
authormoneromooo-monero <moneromooo-monero@users.noreply.github.com>2015-06-12 16:45:29 +0100
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2015-06-12 16:45:29 +0100
commitfb2007181ed453ee54369d02b98856e4dcf3045d (patch)
treec853db39bae3e019e096157fc9e790cce69586ab /src/simplewallet/password_container.cpp
parentwallet: add watch only wallet support (diff)
downloadmonero-fb2007181ed453ee54369d02b98856e4dcf3045d.tar.xz
simplewallet: allow a different password for the watch-only wallet
Diffstat (limited to 'src/simplewallet/password_container.cpp')
-rw-r--r--src/simplewallet/password_container.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/simplewallet/password_container.cpp b/src/simplewallet/password_container.cpp
index e5fb933bb..c1a570a3a 100644
--- a/src/simplewallet/password_container.cpp
+++ b/src/simplewallet/password_container.cpp
@@ -81,14 +81,15 @@ namespace tools
m_empty = true;
}
- bool password_container::read_password()
+ bool password_container::read_password(const char *message)
{
clear();
bool r;
if (is_cin_tty())
{
- std::cout << "password: ";
+ if (message)
+ std::cout << message << ": ";
r = read_from_tty();
}
else