mirror of
https://github.com/monero-project/monero.git
synced 2026-01-14 22:03:25 -08:00
simplewallet: allow a different password for the watch-only wallet
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user