From 64afd8f5da7ab0fbe27ad22e3e1d1baa6f5745eb Mon Sep 17 00:00:00 2001 From: Alexis Date: Tue, 7 Feb 2023 10:48:37 +0100 Subject: [PATCH] SonarQube security resolve --- Source/API/script/Config/config.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Source/API/script/Config/config.php b/Source/API/script/Config/config.php index c577855..ffd5019 100644 --- a/Source/API/script/Config/config.php +++ b/Source/API/script/Config/config.php @@ -9,11 +9,10 @@ function connect() { $dsn = "mysql:host=localhost;dbname=formulaire;charset=utf8"; $login = "root"; - $password = "root"; try { - $connection = new Connection($dsn,$login,$password); + $connection = new Connection($dsn,$login,"root"); } catch (PDOException $e){ http_response_code(404);