This commit is contained in:
KANE LAZENI 2026-02-24 05:45:01 +00:00
parent edab501502
commit e4c28b62c1

View File

@ -579,8 +579,6 @@
verificationToken = <?= $_SESSION['idDemande'] ?> ;
// alert("verificationToken = "+verificationToken);
// Initialisation
window.onload = function() {
if (!verificationToken) {
@ -687,11 +685,6 @@
const base64Only = capturedImage.split(',')[1];
/*
alert("capturedImage => "+capturedImage);
alert("base64Only => "+base64Only);
*/
$.ajax({
url: '/Contestation/verify_facial_api.php',
method: 'POST',
@ -704,7 +697,7 @@
}),
dataType: 'json',
success: function(data) {
alert(data);
// alert(data);
console.log(data);
if (data.success && data.match) {
showSuccess(data);
@ -713,10 +706,10 @@
}
},
error: function(xhr, status, error) {
// showError('Erreur lors de la vérification: ' + error);
showError(xhr.responseText);
showError('Erreur lors de la vérification: ' + error);
// showError(xhr.responseText);
// console.log(error);
console.log(xhr.responseText);
// console.log(xhr.responseText);
}
});
}