diff --git a/Vues/signIn.php b/Vues/signIn.php
index 2617a29..049cf0f 100644
--- a/Vues/signIn.php
+++ b/Vues/signIn.php
@@ -13,26 +13,17 @@
-
diff --git a/controllers/FrontController.php b/controllers/FrontController.php
index 107c8d4..dbdea4b 100644
--- a/controllers/FrontController.php
+++ b/controllers/FrontController.php
@@ -4,7 +4,7 @@ class FrontController {
public function __construct(){
$liste_actions_utilisateur = array('accessPrivateLists','crerListePv');
- $liste_actions_visiteur = array('goHome','changeCompletedTache','accessCreationTachePage','addTache','delTache','modifyList','accessCreationListePage','accessInscription','accessSignIn','creerListe','delListe','singIn','singUp','deconnection');
+ $liste_actions_visiteur = array('goHome','changeCompletedTache','accessCreationTachePage','addTache','delTache','modifyList','accessCreationListePage','accessInscription','accessSignIn','creerListe','delListe','signIn','signUp','deconnection');
global $rep,$vues,$bd,$dataView,$styles,$assets;
session_start();
try{
diff --git a/controllers/VisitorController.php b/controllers/VisitorController.php
index 93ab86d..cdcb153 100644
--- a/controllers/VisitorController.php
+++ b/controllers/VisitorController.php
@@ -20,11 +20,10 @@ class VisitorController {
break;
case "signIn":
- $this->Connexion($login, $mdp);
+ $this->Connection($vues_erreur);
break;
-
case "signUp":
- $this->Inscription($login, $mdp);
+ $this->Inscription($vues_erreur);
break;
case "accessSignIn":
require($rep.$vues['signIn']);
@@ -72,17 +71,16 @@ class VisitorController {
}
- public function Connexion(array $vues_erreur){
+ public function Connection(array $vues_erreur){
global $rep,$vues,$dataView;
- $username=$_POST['login'];
- $password=$_POST['mdp'];
+ $username=$_POST['username'];
+ $password=$_POST['password'];
$vues_erreur=Validation::val_connexion($username,$password,$vues_erreur);
if(!empty($vues_erreur)){
require($rep.$vues['signIn']);
}
$model= new MdlUser();
if($model->existUser($username)){
- echo "aaaaaaaaaaggehdhhdhdhdhdhdhcfhgezshfiueshfiuehiufhsiufheiushfiuhf";
if(password_verify($password,$model->getPasswordHash($username))){
$model->connexion($username);
$_REQUEST['action']=null;