This commit is contained in:
KANE LAZENI 2026-04-23 19:12:53 +00:00
parent 41fe9733a2
commit 9e87b03c3b
2 changed files with 6 additions and 8 deletions

View File

@ -508,8 +508,7 @@
</div>
<div class="content">
<!-- <input type="hidden" id="csrf_token" name="csrf_token" value="<?= htmlspecialchars($token) ?>"> -->
<input class='form-control' type='text' id='csrf_token' name='csrf_token' value="<?= htmlspecialchars($token) ?>">
<input type="hidden" id="csrf_token" name="csrf_token" value="<?= htmlspecialchars($token) ?>">
<!-- Étape 1: Chargement -->
<div id="step-loading" class="step active">
@ -723,8 +722,8 @@
}),
dataType: 'json',
success: function(data) {
alert(data);
console.log(data);
// alert(data);
// console.log(data);
if (data.success && data.match) {
showSuccess(data);
} else {
@ -733,9 +732,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);
}
});
}

View File

@ -269,7 +269,6 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') {
exit;
}
echo json_encode($api->verifyFace($token, $image));
// $api->verifyFace($token, $image);
break;
default: