mirror of
https://github.com/monero-project/monero.git
synced 2025-05-05 05:04:58 -04:00
simplewallet: allow a different password for the watch-only wallet
This commit is contained in:
parent
c882af63c1
commit
fb2007181e
3 changed files with 14 additions and 8 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue