This commit is contained in:
KANE LAZENI 2026-02-23 04:27:19 +00:00
parent 799a28f472
commit 17a5fc62d5
2 changed files with 6 additions and 2 deletions

View File

@ -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);

View File

@ -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) {