add password 'enter'-char for windows

This commit is contained in:
lucaspalomodevelop 2023-10-18 21:22:18 +02:00
parent b3dc24350f
commit ce72969e64

View File

@ -155,7 +155,7 @@ std::string EnterPassword()
while (true)
{
c = getch();
if (c == '\n')
if (c == '\n' || c == '\r')
break;
password += c;
std::cout << "*";