public bool read_password(bool verify, string msg) { clear(); bool r; if (GlobalMembers.is_cin_tty()) { Console.Write(InformationMsg(msg)); if (verify) { string password1; string password2; r = read_from_tty(password1); if (r) { Console.Write(InformationMsg("Confirm your new password: "******"Passwords do not match, try again.")); Console.Write("\n"); clear(); return(read_password(true, msg)); } } } } else { r = read_from_tty(m_password); } } else { r = read_from_file(); } if (r) { m_empty = false; } else { clear(); } return(r); }