From f732e723b7b5d90420ed6ab29df077650574cdfc Mon Sep 17 00:00:00 2001 From: Leon Klingele Date: Fri, 3 Nov 2017 04:04:54 +0100 Subject: Disguise password length in prompt --- src/common/password.cpp | 4 ---- 1 file changed, 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 << '*'; } } -- cgit v1.2.3