aboutsummaryrefslogtreecommitdiff
path: root/src/simplewallet/password_container.cpp
diff options
context:
space:
mode:
authorRiccardo Spagni <ric@spagni.net>2015-06-14 13:09:14 +0200
committerRiccardo Spagni <ric@spagni.net>2015-06-14 13:09:16 +0200
commit66a5c9e50fee08096117266e94ba02d39a7570ea (patch)
treedeb3552b3a30aef447c053cba08338e8005193d5 /src/simplewallet/password_container.cpp
parentMerge pull request #317 (diff)
parentsimplewallet: allow a different password for the watch-only wallet (diff)
downloadmonero-66a5c9e50fee08096117266e94ba02d39a7570ea.tar.xz
Merge pull request #318
fb20071 simplewallet: allow a different password for the watch-only wallet (moneromooo-monero)
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