From d4522746cfc3470eced84ddec8bfe5987ee3a9c1 Mon Sep 17 00:00:00 2001 From: KANE LAZENI Date: Mon, 23 Feb 2026 02:50:19 +0000 Subject: [PATCH] a --- Contestation/Demandereconnaissancefaciale.php | 3 +-- Contestation/verify_facial_api.php | 9 ++------- 2 files changed, 3 insertions(+), 9 deletions(-) diff --git a/Contestation/Demandereconnaissancefaciale.php b/Contestation/Demandereconnaissancefaciale.php index 03488f2..2e6d4f9 100755 --- a/Contestation/Demandereconnaissancefaciale.php +++ b/Contestation/Demandereconnaissancefaciale.php @@ -571,8 +571,7 @@ fetch('verify_facial_api.php', { method: 'POST', headers: { - // 'Content-Type': 'application/json', - 'Content-Type': 'text/html; charset=UTF-8', + 'Content-Type': 'application/json', }, body: JSON.stringify({ action: 'validate_token', diff --git a/Contestation/verify_facial_api.php b/Contestation/verify_facial_api.php index 04f02ad..852f7d3 100644 --- a/Contestation/verify_facial_api.php +++ b/Contestation/verify_facial_api.php @@ -4,12 +4,9 @@ * Gère la validation des tokens et la comparaison des visages */ -// header('Content-Type: application/json'); -header('Content-Type: text/html; charset=UTF-8'); -// require_once 'config.php'; -// require_once 'database.php'; -// require_once "Assure.php"; +session_start(); +header('Content-Type: application/json'); class FacialVerificationAPI { // private $db; @@ -18,8 +15,6 @@ class FacialVerificationAPI { // public function __construct($db) { public function __construct() { - // $this->db = $db; - // $assure_api = new Assure(); $assure_api = $_SESSION['assure']; $maxAttempts = $assure_api->get_nbTentativeBiometrie($_SESSION['codeEntite']); }