From 33202511c8b6912cbc9137005f5884c929c0627d Mon Sep 17 00:00:00 2001 From: afornerot Date: Sun, 3 Nov 2024 10:45:10 +0100 Subject: [PATCH] svg --- src/Controller/HomeController.php | 1 - src/Controller/SecurityController.php | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Controller/HomeController.php b/src/Controller/HomeController.php index 7808a9f..d8ee847 100755 --- a/src/Controller/HomeController.php +++ b/src/Controller/HomeController.php @@ -12,7 +12,6 @@ class HomeController extends AbstractController public function home() { $items=null; - dump($this->getParameter("appNinegateactivate")); if($this->getParameter("appNinegateactivate")) { // Entete $headers = ['Accept' => 'application/json', 'key' => $this->getParameter("appNinegatesecret"), 'only'=>'items']; diff --git a/src/Controller/SecurityController.php b/src/Controller/SecurityController.php index d6a56a3..33b0bd7 100755 --- a/src/Controller/SecurityController.php +++ b/src/Controller/SecurityController.php @@ -85,6 +85,7 @@ class SecurityController extends AbstractController $user->setFirstname($firstname); $user->setPseudo($username); $user->setEmail($email); + $user->setRoles(["ROLE_USER"]); $user->setPassword("CASPWD-".$username); $user->setSalt("CASPWD-".$username);