From ce72969e64d5b7ea024ad3af0696a2531d323c3c Mon Sep 17 00:00:00 2001 From: lucaspalomodevelop Date: Wed, 18 Oct 2023 21:22:18 +0200 Subject: [PATCH] add password 'enter'-char for windows --- src/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.cpp b/src/main.cpp index eaa1c02..cf5d041 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -155,7 +155,7 @@ std::string EnterPassword() while (true) { c = getch(); - if (c == '\n') + if (c == '\n' || c == '\r') break; password += c; std::cout << "*";