aboutsummaryrefslogtreecommitdiff
path: root/src/wallet/wallet_rpc_server.cpp
diff options
context:
space:
mode:
authorLee Clagett <code@leeclagett.com>2016-12-17 18:07:15 -0500
committerLee Clagett <code@leeclagett.com>2016-12-19 20:00:43 -0500
commit2bddb8ebee4b25f2f73e6476dd1019459d8a1aca (patch)
treecc1edfe5d2b0ff388f68db03ce82bcec71ee201a /src/wallet/wallet_rpc_server.cpp
parentMerge pull request #1464 (diff)
downloadmonero-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.cpp6
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())