a
This commit is contained in:
parent
08520197f7
commit
add9c5aa19
|
|
@ -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);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user