private function connectionAction()
 {
     $oUser = new User();
     $oUser->setEmail($_POST['email']);
     $oUser->setPassword($_POST['password']);
     if (UserManager::connect($oUser)) {
         //header('location: index.php');
         header('location: index.php');
     } else {
         $bConnectError = true;
         require ROOT . 'src/ecommerce/view/login/login.php';
     }
 }
 public function signinAction()
 {
     if (array_key_exists("connect", $_POST)) {
         if ($_POST["mail"] && $_POST["pwd"]) {
             $user = new User(null, $_POST["mail"], $_POST["pwd"], false, null, null, null, null, null, null);
             $userLogin = UserManager::connect($user);
             if ($userLogin) {
                 $_SESSION["user"] = $userLogin;
                 header('Location: index.php?controller=Front&method=membre');
             } else {
                 header('Location: index.php?controller=Front&method=signin&error1');
             }
         } else {
             header('Location: index.php?controller=Front&method=signin&error2');
         }
     }
     if (array_key_exists("error1", $_GET)) {
         $this->message = "Erreur d'authentification" . "<br>";
     }
     if (array_key_exists("error2", $_GET)) {
         $this->message = "Champs incomplets" . "<br>";
     }
     require 'src/Ecommerce/view/login.php';
 }