Merge branch 'main' into besnik

This commit is contained in:
Yass 2026-01-23 11:53:49 +01:00 committed by GitHub
commit c1c3a75aa2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
36 changed files with 1661 additions and 7 deletions

View file

@ -32,18 +32,11 @@ class UserCtrl{
$arrError[] = "Mail ou mot de passe invalide";
}else{
// Ajoute l'utilisateur en session
/*$_SESSION['firstname'] = $arrResult['user_firstname'];
$_SESSION['name'] = $arrResult['user_name'];
$_SESSION['id'] = $arrResult['user_id'];*/
// j'enlève le mot de passe avant la session
//unset($arrResult['user_pwd']);
$_SESSION['user'] = $arrResult;
$_SESSION['success'] = "Bienvenue, vous êtes bien connecté";
header("Location:index.php");
exit;
//var_dump($_SESSION);
//var_dump("Connecté");
}
}
}