This commit is contained in:
KANE LAZENI 2026-02-23 02:50:19 +00:00
parent d323001935
commit d4522746cf
2 changed files with 3 additions and 9 deletions

View File

@ -571,8 +571,7 @@
fetch('verify_facial_api.php', {
method: 'POST',
headers: {
// 'Content-Type': 'application/json',
'Content-Type': 'text/html; charset=UTF-8',
'Content-Type': 'application/json',
},
body: JSON.stringify({
action: 'validate_token',

View File

@ -4,12 +4,9 @@
* Gère la validation des tokens et la comparaison des visages
*/
// header('Content-Type: application/json');
header('Content-Type: text/html; charset=UTF-8');
// require_once 'config.php';
// require_once 'database.php';
// require_once "Assure.php";
session_start();
header('Content-Type: application/json');
class FacialVerificationAPI {
// private $db;
@ -18,8 +15,6 @@ class FacialVerificationAPI {
// public function __construct($db) {
public function __construct() {
// $this->db = $db;
// $assure_api = new Assure();
$assure_api = $_SESSION['assure'];
$maxAttempts = $assure_api->get_nbTentativeBiometrie($_SESSION['codeEntite']);
}