mirror of
https://codeberg.org/anoncontributorxmr/monero.git
synced 2024-12-24 14:17:46 +00:00
Merge pull request #2749
f732e723
Disguise password length in prompt (Leon Klingele)
This commit is contained in:
commit
a2b427b1bf
1 changed files with 0 additions and 4 deletions
|
@ -88,13 +88,11 @@ namespace
|
||||||
{
|
{
|
||||||
pass.back() = '\0';
|
pass.back() = '\0';
|
||||||
pass.resize(pass.size() - 1);
|
pass.resize(pass.size() - 1);
|
||||||
std::cout << "\b \b";
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
pass.push_back(ch);
|
pass.push_back(ch);
|
||||||
std::cout << '*';
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -150,13 +148,11 @@ namespace
|
||||||
{
|
{
|
||||||
aPass.back() = '\0';
|
aPass.back() = '\0';
|
||||||
aPass.resize(aPass.size() - 1);
|
aPass.resize(aPass.size() - 1);
|
||||||
std::cout << "\b \b";
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
aPass.push_back(ch);
|
aPass.push_back(ch);
|
||||||
std::cout << '*';
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue