aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRiccardo Spagni <ric@spagni.net>2017-11-14 15:35:47 +0200
committerRiccardo Spagni <ric@spagni.net>2017-11-14 15:35:47 +0200
commita2b427b1bf076493d402eff1ff930a6c5d7afc04 (patch)
tree955bba47327b781f294022671ba34b262e9f24f3 /src
parentMerge pull request #2747 (diff)
parentDisguise password length in prompt (diff)
downloadmonero-a2b427b1bf076493d402eff1ff930a6c5d7afc04.tar.xz
Merge pull request #2749
f732e723 Disguise password length in prompt (Leon Klingele)
Diffstat (limited to 'src')
-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 << '*';
}
}