a
This commit is contained in:
parent
0408f679fc
commit
97f9529f7e
|
|
@ -545,9 +545,11 @@
|
|||
</div>
|
||||
|
||||
<script src="jquery.min.js"></script>
|
||||
<!--
|
||||
<script src="jquery-ui.js"></script>
|
||||
<script src="timer.jquery.js"></script>
|
||||
|
||||
-->
|
||||
|
||||
<script>
|
||||
let video = document.getElementById('video');
|
||||
let canvas = document.getElementById('canvas');
|
||||
|
|
@ -575,34 +577,6 @@
|
|||
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() {
|
||||
$.ajax({
|
||||
url: 'verify_facial_api.php',
|
||||
|
|
@ -622,8 +596,8 @@
|
|||
showError(data.message || 'Lien expiré ou invalide');
|
||||
}
|
||||
},
|
||||
error: function() {
|
||||
alert("Error => " + data);
|
||||
error: function(xhr, status, err) {
|
||||
alert("Error => " + err);
|
||||
showError('KANE : Erreur de connexion au serveur');
|
||||
}
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user