a
This commit is contained in:
parent
0408f679fc
commit
97f9529f7e
|
|
@ -545,9 +545,11 @@
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<script src="jquery.min.js"></script>
|
<script src="jquery.min.js"></script>
|
||||||
|
<!--
|
||||||
<script src="jquery-ui.js"></script>
|
<script src="jquery-ui.js"></script>
|
||||||
<script src="timer.jquery.js"></script>
|
<script src="timer.jquery.js"></script>
|
||||||
|
-->
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
let video = document.getElementById('video');
|
let video = document.getElementById('video');
|
||||||
let canvas = document.getElementById('canvas');
|
let canvas = document.getElementById('canvas');
|
||||||
|
|
@ -575,34 +577,6 @@
|
||||||
validateToken();
|
validateToken();
|
||||||
};
|
};
|
||||||
|
|
||||||
/*
|
|
||||||
function validateToken() {
|
|
||||||
fetch('verify_facial_api.php', {
|
|
||||||
method: 'POST',
|
|
||||||
headers: {
|
|
||||||
'Content-Type': 'application/json',
|
|
||||||
},
|
|
||||||
body: JSON.stringify({
|
|
||||||
action: 'validate_token',
|
|
||||||
token: verificationToken
|
|
||||||
})
|
|
||||||
})
|
|
||||||
.then(response => response.json())
|
|
||||||
.then(data => {
|
|
||||||
alert(data);
|
|
||||||
console.log('Réponse JSON :', data);
|
|
||||||
if (data.success) {
|
|
||||||
showStep('step-instructions');
|
|
||||||
} else {
|
|
||||||
showError(data.message || 'Lien expiré ou invalide');
|
|
||||||
}
|
|
||||||
})
|
|
||||||
.catch(error => {
|
|
||||||
showError('KANE : Erreur de connexion au serveur');
|
|
||||||
});
|
|
||||||
}
|
|
||||||
*/
|
|
||||||
|
|
||||||
function validateToken() {
|
function validateToken() {
|
||||||
$.ajax({
|
$.ajax({
|
||||||
url: 'verify_facial_api.php',
|
url: 'verify_facial_api.php',
|
||||||
|
|
@ -622,8 +596,8 @@
|
||||||
showError(data.message || 'Lien expiré ou invalide');
|
showError(data.message || 'Lien expiré ou invalide');
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
error: function() {
|
error: function(xhr, status, err) {
|
||||||
alert("Error => " + data);
|
alert("Error => " + err);
|
||||||
showError('KANE : Erreur de connexion au serveur');
|
showError('KANE : Erreur de connexion au serveur');
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user