diff --git a/Contestation/Demandereconnaissancefaciale.php b/Contestation/Demandereconnaissancefaciale.php index 70f5d2b..85e2ec2 100755 --- a/Contestation/Demandereconnaissancefaciale.php +++ b/Contestation/Demandereconnaissancefaciale.php @@ -611,7 +611,7 @@ function validateToken() { v_csrf_token=$("#csrf_token").val(); - alert("verifyPhoto => "+v_csrf_token); + // alert("verifyPhoto => "+v_csrf_token); $.ajax({ url: '/Contestation/verify_facial_api.php', @@ -704,7 +704,7 @@ function verifyPhoto() { v_csrf_token=$("#csrf_token").val(); - alert("verifyPhoto => "+v_csrf_token); + // alert("verifyPhoto => "+v_csrf_token); showStep('step-verifying'); @@ -723,7 +723,7 @@ }), dataType: 'json', success: function(data) { - // alert(data); + alert(data); console.log(data); if (data.success && data.match) { showSuccess(data); @@ -733,9 +733,9 @@ }, error: function(xhr, status, error) { showError('Erreur lors de la vérification: ' + error); - // showError(xhr.responseText); - // console.log(error); - // console.log(xhr.responseText); + showError(xhr.responseText); + console.log(error); + console.log(xhr.responseText); } }); } diff --git a/Contestation/verify_facial_api.php b/Contestation/verify_facial_api.php index 1ffe157..3282bc7 100644 --- a/Contestation/verify_facial_api.php +++ b/Contestation/verify_facial_api.php @@ -267,8 +267,8 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') { echo json_encode(['success' => false, 'message' => 'Token et image requis']); exit; } - // echo json_encode($api->verifyFace($token, $image)); - $api->verifyFace($token, $image); + echo json_encode($api->verifyFace($token, $image)); + // $api->verifyFace($token, $image); break; default: