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 941ecefab2
commit c99c07bf4a
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)