diff --git a/config/config.php b/config/config.php index 25f8641..76a557b 100644 --- a/config/config.php +++ b/config/config.php @@ -2,9 +2,9 @@ $rep = __DIR__ . '/../'; -$login="root"; -$password="root"; -$dsn="mysql:host=localhost;port=8888;dbname=bddDeQualite"; // chemin vers bd (mysql:host=londres.uca.local;dbname=dblibreton => pour l'iut) +$login="thchazot1"; +$password="achanger"; +$dsn="mysql:host=localhost;dbname=dbthchazot1"; // chemin vers bd (mysql:host=londres.uca.local;dbname=dblibreton => pour l'iut) //$dsn="mysql:host=localhost;port=8888;dbname=bddDeQualite"; /* $login="thchazot1"; diff --git a/modeles/MdlUser.php b/modeles/MdlUser.php index f27af96..4d636a2 100644 --- a/modeles/MdlUser.php +++ b/modeles/MdlUser.php @@ -56,7 +56,7 @@ class MdlUser{ $gate=new UserGateway($this->con); return $gate->getHashedPassword($usr); } - + public function findByName(string $usr){ $gate=new UserGateway($this->con); $result=$gate->findByName($usr);