This commit is contained in:
KANE LAZENI 2026-02-24 02:22:16 +00:00
parent 0c92e6a40d
commit 7127efed0c
2 changed files with 11 additions and 1 deletions

View File

@ -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',

View File

@ -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']);