a
This commit is contained in:
parent
5a889cec40
commit
6b91745e1f
|
|
@ -867,7 +867,6 @@
|
|||
}),
|
||||
dataType: 'json',
|
||||
success: function(data) {
|
||||
console.log(data);
|
||||
if (data.success && data.match) {
|
||||
showSuccess(data);
|
||||
} else {
|
||||
|
|
@ -875,8 +874,7 @@
|
|||
}
|
||||
},
|
||||
error: function(xhr, status, error) {
|
||||
console.log(error);
|
||||
showError('Erreur lors de la vérification AJAX: ' + error);
|
||||
showError('Erreur lors de la vérification : ' + error);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
|
@ -930,6 +928,7 @@
|
|||
}
|
||||
}
|
||||
|
||||
/*
|
||||
function startCountdown(seconds, callback) {
|
||||
let remaining = seconds;
|
||||
const countdownEl = document.getElementById('countdown');
|
||||
|
|
@ -951,6 +950,23 @@
|
|||
window.onbeforeunload = function() {
|
||||
stopCamera();
|
||||
};
|
||||
*/
|
||||
|
||||
function startCountdown(seconds, callback) {
|
||||
let remaining = seconds;
|
||||
const countdownEl = document.getElementById('countdown');
|
||||
|
||||
const interval = setInterval(() => {
|
||||
countdownEl.textContent = `Redirection dans ${remaining} secondes...`;
|
||||
remaining--;
|
||||
|
||||
if (remaining < 0) {
|
||||
clearInterval(interval);
|
||||
callback();
|
||||
}
|
||||
}, 1000);
|
||||
}
|
||||
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -22,9 +22,6 @@ class FacialVerificationAPI {
|
|||
: 3;
|
||||
}
|
||||
|
||||
/**
|
||||
* Valide un token de vérification
|
||||
*/
|
||||
public function validateToken($token) {
|
||||
$_SESSION['lienPhoto'] = "";
|
||||
try {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user