From 5e378923aed73cfcca4be6fa93cb4d47d0aa016c Mon Sep 17 00:00:00 2001 From: KANE LAZENI Date: Tue, 24 Feb 2026 02:28:14 +0000 Subject: [PATCH] A --- Contestation/Demandereconnaissancefaciale.php | 2 -- Contestation/verify_facial_api.php | 7 +++++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/Contestation/Demandereconnaissancefaciale.php b/Contestation/Demandereconnaissancefaciale.php index 966b5f9..e9e32ca 100755 --- a/Contestation/Demandereconnaissancefaciale.php +++ b/Contestation/Demandereconnaissancefaciale.php @@ -712,8 +712,6 @@ /* alert("capturedImage => "+capturedImage); - - alert("base64Only => "+base64Only); */ diff --git a/Contestation/verify_facial_api.php b/Contestation/verify_facial_api.php index 217f82c..fed8f29 100644 --- a/Contestation/verify_facial_api.php +++ b/Contestation/verify_facial_api.php @@ -97,7 +97,8 @@ class FacialVerificationAPI { // $referenceImageData = file_get_contents($referenceImagePath); $referenceImageData = $referenceImagePath; // $capturedImageData = base64_decode(explode(',', $capturedImageBase64)[1]); - $capturedImageData = base64_decode($capturedImageBase64); + // $capturedImageData = base64_decode($capturedImageBase64); + $capturedImageData = $capturedImageBase64; var_dump( array( @@ -339,6 +340,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') { $token = $input['token'] ?? null; $image = $input['image'] ?? null; + /* var_dump( array( "token" => $token, @@ -346,7 +348,8 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') { ) ); exit; - + */ + if (!$token || !$image) { echo json_encode(['success' => false, 'message' => 'Token et image requis']); exit;