a
This commit is contained in:
parent
799a28f472
commit
17a5fc62d5
|
|
@ -576,20 +576,22 @@
|
||||||
$.ajax({
|
$.ajax({
|
||||||
url: 'verify_facial_api.php',
|
url: 'verify_facial_api.php',
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
contentType: 'application/json',
|
// contentType: 'application/json',
|
||||||
data: JSON.stringify({
|
data: JSON.stringify({
|
||||||
action: 'validate_token',
|
action: 'validate_token',
|
||||||
token: verificationToken
|
token: verificationToken
|
||||||
}),
|
}),
|
||||||
dataType: 'json',
|
// dataType: 'json',
|
||||||
success: function(data) {
|
success: function(data) {
|
||||||
alert("succes => " + data);
|
alert("succes => " + data);
|
||||||
console.log('Réponse JSON :', data);
|
console.log('Réponse JSON :', data);
|
||||||
|
/*
|
||||||
if (data.success) {
|
if (data.success) {
|
||||||
showStep('step-instructions');
|
showStep('step-instructions');
|
||||||
} else {
|
} else {
|
||||||
showError(data.message || 'Lien expiré ou invalide');
|
showError(data.message || 'Lien expiré ou invalide');
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
},
|
},
|
||||||
error: function(xhr, status, err) {
|
error: function(xhr, status, err) {
|
||||||
console.log(err);
|
console.log(err);
|
||||||
|
|
|
||||||
|
|
@ -429,6 +429,8 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') {
|
||||||
$input = json_decode(file_get_contents('php://input'), true);
|
$input = json_decode(file_get_contents('php://input'), true);
|
||||||
$action = $input['action'] ?? null;
|
$action = $input['action'] ?? null;
|
||||||
|
|
||||||
|
var_dump($input);
|
||||||
|
|
||||||
$api = new FacialVerificationAPI();
|
$api = new FacialVerificationAPI();
|
||||||
|
|
||||||
switch ($action) {
|
switch ($action) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user