a
This commit is contained in:
parent
5b1168aa7e
commit
9ec4d24f8e
|
|
@ -705,35 +705,6 @@
|
|||
}
|
||||
}
|
||||
|
||||
/*
|
||||
function verifyPhoto() {
|
||||
showStep('step-verifying');
|
||||
|
||||
fetch('verify_facial_api.php', {
|
||||
method: 'POST',
|
||||
headers: {
|
||||
'Content-Type': 'application/json',
|
||||
},
|
||||
body: JSON.stringify({
|
||||
action: 'verify_face',
|
||||
token: verificationToken,
|
||||
image: capturedImage
|
||||
})
|
||||
})
|
||||
.then(response => response.json())
|
||||
.then(data => {
|
||||
if (data.success && data.match) {
|
||||
showSuccess(data);
|
||||
} else {
|
||||
showFailure(data);
|
||||
}
|
||||
})
|
||||
.catch(error => {
|
||||
showError('Erreur lors de la vérification: ' + error.message);
|
||||
});
|
||||
}
|
||||
*/
|
||||
|
||||
function verifyPhoto() {
|
||||
showStep('step-verifying');
|
||||
$.ajax({
|
||||
|
|
@ -756,9 +727,9 @@
|
|||
}
|
||||
},
|
||||
error: function(xhr, status, error) {
|
||||
showError('Erreur lors de la vérification: ' + error);
|
||||
// showError(xhr.responseText);
|
||||
console.log(error);
|
||||
// showError('Erreur lors de la vérification: ' + error);
|
||||
showError(xhr.responseText);
|
||||
// console.log(error);
|
||||
console.log(xhr.responseText);
|
||||
}
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user