db_bridge/mysql_db.cpp
changeset 20 5fec678f931b
parent 17 b3731a25b9ec
child 22 0db9235d68d9
--- a/db_bridge/mysql_db.cpp
+++ b/db_bridge/mysql_db.cpp
@@ -4,6 +4,7 @@
  */
 
 #include <mysql_db.h>
+#include <console.h>
 
 MySQL_DB::MySQL_DB (std::string srv, std::string usr, std::string pwd, std::string db)
 {
@@ -15,7 +16,7 @@
 
     if (server != "" && pwd == "") {
         std::cout << "Passwort von " << user << "@" << server << ": ";
-        std::getline (std::cin, password);
+        Console::getpass (password);
     }
 }