diff --git a/db_bridge/postgresql_db.cpp b/db_bridge/postgresql_db.cpp --- a/db_bridge/postgresql_db.cpp +++ b/db_bridge/postgresql_db.cpp @@ -5,6 +5,7 @@ #include #include +#include PostgreSQL_DB::PostgreSQL_DB (std::string srv, std::string usr, std::string pwd, std::string db) { @@ -17,7 +18,7 @@ if (server != "" && pwd == "") { std::cout << "Passwort von " << user << "@" << server << ": "; - std::getline (std::cin, password); + Console::getpass (password); conninfo += " host=" + server + " password=" + password; } }