mirror of
https://github.com/lucaspalomodevelop/autom.git
synced 2026-03-12 23:27:21 +00:00
add password 'enter'-char for windows
This commit is contained in:
parent
b3dc24350f
commit
ce72969e64
@ -155,7 +155,7 @@ std::string EnterPassword()
|
||||
while (true)
|
||||
{
|
||||
c = getch();
|
||||
if (c == '\n')
|
||||
if (c == '\n' || c == '\r')
|
||||
break;
|
||||
password += c;
|
||||
std::cout << "*";
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user