From c99c07bf4a4027c4e5d35eea61e4b1f5ba16ecc4 Mon Sep 17 00:00:00 2001 From: jeffro256 Date: Thu, 26 Dec 2024 13:32:11 -0600 Subject: [PATCH] common/password: flush confirm prompt before user input Co-authored-by: Mike --- src/common/password.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/password.cpp b/src/common/password.cpp index 084e40d4b..4bea3c5b3 100644 --- a/src/common/password.cpp +++ b/src/common/password.cpp @@ -185,7 +185,7 @@ namespace return false; if (verify) { - std::cout << "Confirm password: "; + std::cout << "Confirm password: " << std::flush; if (!read_from_tty(pass2, hide_input)) return false; if(pass1!=pass2)