a
This commit is contained in:
parent
0c92e6a40d
commit
7127efed0c
|
|
@ -708,12 +708,14 @@
|
|||
function verifyPhoto() {
|
||||
showStep('step-verifying');
|
||||
|
||||
/*
|
||||
alert("capturedImage => "+capturedImage);
|
||||
|
||||
const base64Only = capturedImage.split(',')[1];
|
||||
|
||||
alert("base64Only => "+base64Only);
|
||||
|
||||
*/
|
||||
|
||||
$.ajax({
|
||||
url: '/Contestation/verify_facial_api.php',
|
||||
method: 'POST',
|
||||
|
|
|
|||
|
|
@ -338,6 +338,14 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') {
|
|||
case 'verify_face':
|
||||
$token = $input['token'] ?? null;
|
||||
$image = $input['image'] ?? null;
|
||||
|
||||
var_dump(
|
||||
array(
|
||||
"token" => $token,
|
||||
"image" => $image,
|
||||
)
|
||||
);
|
||||
exit;
|
||||
|
||||
if (!$token || !$image) {
|
||||
echo json_encode(['success' => false, 'message' => 'Token et image requis']);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user