a
This commit is contained in:
parent
41fe9733a2
commit
9e87b03c3b
|
|
@ -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);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
|
|
|||
|
|
@ -269,7 +269,6 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') {
|
|||
exit;
|
||||
}
|
||||
echo json_encode($api->verifyFace($token, $image));
|
||||
// $api->verifyFace($token, $image);
|
||||
break;
|
||||
|
||||
default:
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user