a
This commit is contained in:
parent
0596bc786e
commit
7b548ffae4
|
|
@ -50,6 +50,7 @@
|
||||||
require_once "Assure.php";
|
require_once "Assure.php";
|
||||||
|
|
||||||
$assure = new Assure();
|
$assure = new Assure();
|
||||||
|
$_SESSION['assure'] = $assure;
|
||||||
|
|
||||||
$_SESSION['codeBdd'] = $codeBdd;
|
$_SESSION['codeBdd'] = $codeBdd;
|
||||||
$bdd = $assure->geUneBd($codeBdd);
|
$bdd = $assure->geUneBd($codeBdd);
|
||||||
|
|
@ -553,7 +554,7 @@
|
||||||
|
|
||||||
verificationToken = <?= $_SESSION['idDemande'] ?> ;
|
verificationToken = <?= $_SESSION['idDemande'] ?> ;
|
||||||
|
|
||||||
// alert("verificationToken = "+verificationToken);
|
// alert("verificationToken = "+verificationToken);
|
||||||
|
|
||||||
// Initialisation
|
// Initialisation
|
||||||
window.onload = function() {
|
window.onload = function() {
|
||||||
|
|
@ -575,6 +576,7 @@
|
||||||
body: JSON.stringify({
|
body: JSON.stringify({
|
||||||
action: 'validate_token',
|
action: 'validate_token',
|
||||||
token: verificationToken
|
token: verificationToken
|
||||||
|
$assure
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
.then(response => response.json())
|
.then(response => response.json())
|
||||||
|
|
|
||||||
|
|
@ -18,8 +18,10 @@ class FacialVerificationAPI {
|
||||||
// public function __construct($db) {
|
// public function __construct($db) {
|
||||||
public function __construct() {
|
public function __construct() {
|
||||||
// $this->db = $db;
|
// $this->db = $db;
|
||||||
$assure_api = new Assure();
|
// $assure_api = new Assure();
|
||||||
$maxAttempts = get_nbTentativeBiometrie($_SESSION['codeEntite']);
|
$assure_api = $_SESSION['assure'];
|
||||||
|
$maxAttempts = $assure->get_nbTentativeBiometrie($_SESSION['codeEntite']);
|
||||||
|
$demande = $assure->checkdemandereconnaissancefaciale_id();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
@ -413,6 +415,9 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') {
|
||||||
|
|
||||||
// $api = new FacialVerificationAPI($db->getConnection());
|
// $api = new FacialVerificationAPI($db->getConnection());
|
||||||
$api = new FacialVerificationAPI();
|
$api = new FacialVerificationAPI();
|
||||||
|
|
||||||
|
var_dump($api);
|
||||||
|
exit;
|
||||||
|
|
||||||
switch ($action) {
|
switch ($action) {
|
||||||
case 'validate_token':
|
case 'validate_token':
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user