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