diff --git a/Contestation/Demandereconnaissancefaciale.php b/Contestation/Demandereconnaissancefaciale.php index add604d..9091b31 100755 --- a/Contestation/Demandereconnaissancefaciale.php +++ b/Contestation/Demandereconnaissancefaciale.php @@ -576,20 +576,22 @@ $.ajax({ url: 'verify_facial_api.php', method: 'POST', - contentType: 'application/json', + // contentType: 'application/json', data: JSON.stringify({ action: 'validate_token', token: verificationToken }), - dataType: 'json', + // dataType: 'json', success: function(data) { alert("succes => " + data); console.log('Réponse JSON :', data); + /* if (data.success) { showStep('step-instructions'); } else { showError(data.message || 'Lien expiré ou invalide'); } + */ }, error: function(xhr, status, err) { console.log(err); diff --git a/Contestation/verify_facial_api.php b/Contestation/verify_facial_api.php index 2a7ea35..7366352 100644 --- a/Contestation/verify_facial_api.php +++ b/Contestation/verify_facial_api.php @@ -429,6 +429,8 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') { $input = json_decode(file_get_contents('php://input'), true); $action = $input['action'] ?? null; + var_dump($input); + $api = new FacialVerificationAPI(); switch ($action) {