mirror of
https://github.com/monero-project/monero.git
synced 2025-08-06 22:14:36 -04:00
Refactored password prompting for wallets
This commit is contained in:
parent
5fcf7c1c18
commit
2bddb8ebee
7 changed files with 225 additions and 375 deletions
|
@ -159,9 +159,9 @@ namespace tools
|
|||
}
|
||||
else
|
||||
{
|
||||
tools::password_container pwd(true);
|
||||
pwd.read_password("RPC password");
|
||||
login.password = pwd.password();
|
||||
login.password = tools::password_container::prompt(true, "RPC password").value_or(
|
||||
tools::password_container{}
|
||||
).password();
|
||||
}
|
||||
|
||||
if (login.username.empty() || login.password.empty())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue