diff options
author | Lee Clagett <code@leeclagett.com> | 2016-12-17 18:07:15 -0500 |
---|---|---|
committer | Lee Clagett <code@leeclagett.com> | 2016-12-19 20:00:43 -0500 |
commit | 2bddb8ebee4b25f2f73e6476dd1019459d8a1aca (patch) | |
tree | cc1edfe5d2b0ff388f68db03ce82bcec71ee201a /src/wallet/wallet_rpc_server.cpp | |
parent | Merge pull request #1464 (diff) | |
download | monero-2bddb8ebee4b25f2f73e6476dd1019459d8a1aca.tar.xz |
Refactored password prompting for wallets
Diffstat (limited to 'src/wallet/wallet_rpc_server.cpp')
-rw-r--r-- | src/wallet/wallet_rpc_server.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/wallet/wallet_rpc_server.cpp b/src/wallet/wallet_rpc_server.cpp index c34ce4cf2..2a259029d 100644 --- a/src/wallet/wallet_rpc_server.cpp +++ b/src/wallet/wallet_rpc_server.cpp @@ -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()) |