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);