db_bridge/postgresql_db.cpp
changeset 20 5fec678f931b
parent 18 f3657061ec00
child 40 be3f5582b839
--- a/db_bridge/postgresql_db.cpp
+++ b/db_bridge/postgresql_db.cpp
@@ -5,6 +5,7 @@
 
 #include <postgresql_db.h>
 #include <exception>
+#include <console.h>
 
 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;
     }
 }