a
This commit is contained in:
parent
fc464dc999
commit
08ff5f2126
|
|
@ -855,7 +855,7 @@
|
||||||
$.ajax({
|
$.ajax({
|
||||||
url: '/Contestation/verify_facial_api.php',
|
url: '/Contestation/verify_facial_api.php',
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
contentType: 'application/json',
|
// contentType: 'application/json',
|
||||||
data: JSON.stringify({
|
data: JSON.stringify({
|
||||||
action: 'verify_face',
|
action: 'verify_face',
|
||||||
token: verificationToken,
|
token: verificationToken,
|
||||||
|
|
@ -863,13 +863,16 @@
|
||||||
image: base64Only,
|
image: base64Only,
|
||||||
csrf_token: v_csrf_token
|
csrf_token: v_csrf_token
|
||||||
}),
|
}),
|
||||||
dataType: 'json',
|
// dataType: 'json',
|
||||||
success: function(data) {
|
success: function(data) {
|
||||||
|
alert(data);
|
||||||
|
/*
|
||||||
if (data.success && data.match) {
|
if (data.success && data.match) {
|
||||||
showSuccess(data);
|
showSuccess(data);
|
||||||
} else {
|
} else {
|
||||||
showFailure(data);
|
showFailure(data);
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
},
|
},
|
||||||
error: function(xhr, status, error) {
|
error: function(xhr, status, error) {
|
||||||
showError('Erreur lors de la vérification Ajax : ' + error);
|
showError('Erreur lors de la vérification Ajax : ' + error);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user