diff --git a/Contestation/Demandereconnaissancefaciale.php b/Contestation/Demandereconnaissancefaciale.php index f147cd6..b2d28ea 100755 --- a/Contestation/Demandereconnaissancefaciale.php +++ b/Contestation/Demandereconnaissancefaciale.php @@ -708,12 +708,14 @@ function verifyPhoto() { showStep('step-verifying'); + /* alert("capturedImage => "+capturedImage); const base64Only = capturedImage.split(',')[1]; alert("base64Only => "+base64Only); - + */ + $.ajax({ url: '/Contestation/verify_facial_api.php', method: 'POST', diff --git a/Contestation/verify_facial_api.php b/Contestation/verify_facial_api.php index fd299b1..217f82c 100644 --- a/Contestation/verify_facial_api.php +++ b/Contestation/verify_facial_api.php @@ -338,6 +338,14 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') { case 'verify_face': $token = $input['token'] ?? null; $image = $input['image'] ?? null; + + var_dump( + array( + "token" => $token, + "image" => $image, + ) + ); + exit; if (!$token || !$image) { echo json_encode(['success' => false, 'message' => 'Token et image requis']);