aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLeon Klingele <git@leonklingele.de>2017-11-03 04:04:54 +0100
committerLeon Klingele <git@leonklingele.de>2017-11-03 04:04:54 +0100
commitf732e723b7b5d90420ed6ab29df077650574cdfc (patch)
tree5897f3de3a798f5c3bfaaf0b3da133de3ad044fe
parentMerge pull request #2666 (diff)
downloadmonero-f732e723b7b5d90420ed6ab29df077650574cdfc.tar.xz
Disguise password length in prompt
-rw-r--r--src/common/password.cpp4
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 << '*';
}
}