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