From 5f39d17a9845fb1627d989288066cadbd9a24335 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 e6dff95ea..c0edf7a78 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)