diff options
author | Leon Klingele <git@leonklingele.de> | 2017-11-03 04:04:54 +0100 |
---|---|---|
committer | Leon Klingele <git@leonklingele.de> | 2017-11-03 04:04:54 +0100 |
commit | f732e723b7b5d90420ed6ab29df077650574cdfc (patch) | |
tree | 5897f3de3a798f5c3bfaaf0b3da133de3ad044fe /src/common/password.cpp | |
parent | Merge pull request #2666 (diff) | |
download | monero-f732e723b7b5d90420ed6ab29df077650574cdfc.tar.xz |
Disguise password length in prompt
Diffstat (limited to 'src/common/password.cpp')
-rw-r--r-- | src/common/password.cpp | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/src/common/password.cpp b/src/common/password.cpp index 5c04023f4..b84d6fb2e 100644 --- a/src/common/password.cpp +++ b/src/common/password.cpp @@ -88,13 +88,11 @@ namespace { pass.back() = '\0'; pass.resize(pass.size() - 1); - std::cout << "\b \b"; } } else { pass.push_back(ch); - std::cout << '*'; } } @@ -150,13 +148,11 @@ namespace { aPass.back() = '\0'; aPass.resize(aPass.size() - 1); - std::cout << "\b \b"; } } else { aPass.push_back(ch); - std::cout << '*'; } } |