common/password: flush confirm prompt before user input

Co-authored-by: Mike <mpech@tuta.io>
This commit is contained in:
jeffro256 2024-12-26 13:32:11 -06:00
parent 2fe0f04c1e
commit 5f39d17a98
No known key found for this signature in database
GPG key ID: 6F79797A6E392442

View file

@ -185,7 +185,7 @@ namespace
return false; return false;
if (verify) if (verify)
{ {
std::cout << "Confirm password: "; std::cout << "Confirm password: " << std::flush;
if (!read_from_tty(pass2, hide_input)) if (!read_from_tty(pass2, hide_input))
return false; return false;
if(pass1!=pass2) if(pass1!=pass2)