a
This commit is contained in:
parent
d323001935
commit
d4522746cf
|
|
@ -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',
|
||||
|
|
|
|||
|
|
@ -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']);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user