diff --git a/Contestation/Demandereconnaissancefaciale.php b/Contestation/Demandereconnaissancefaciale.php index f73851e..76c4e20 100755 --- a/Contestation/Demandereconnaissancefaciale.php +++ b/Contestation/Demandereconnaissancefaciale.php @@ -144,16 +144,6 @@ $maxAttempts = $_SESSION['nbTentative']; - /* - var_dump( - array( - "attempts" => $attempts, - "maxAttempts" => $maxAttempts, - ) - ); - exit; - */ - if($attempts>=$maxAttempts) { // changer le status $assure->maj_demandereconnaissancefaciale("5"); // Trop de tentatives @@ -249,551 +239,549 @@ - - - - INTER-SANTÉ - Vérification d'identité - - - -
-
-

🏥 INTER-SANTÉ

-

Vérification d'identité sécurisée

- -

Prestataire :

- -

Patient :

- -

Compteur :

-
- -
- - - -
-
-

Demande Vérification du lien...

-
- - -
-
-

Instructions pour la vérification

-
    -
  • Positionnez votre visage dans l'ovale
  • -
  • Assurez-vous d'être dans un endroit bien éclairé
  • -
  • Regardez directement la caméra
  • -
  • Restez immobile lors de la capture
  • -
  • Retirez lunettes de soleil, casquette ou masque
  • -
-
- -
- - -
-
- - -
-
-
- Positionnez votre visage dans l'ovale -
- -
- - -
-

Confirmez votre photo

- Votre photo - - -
- - -
-
-

- Vérification de votre identité en cours...
- Merci de patienter -

-
- - -
-
-
-

-

-
-
-
- - -
-
-

❌ Erreur

-

-
-
-
-
- - - - + + - + } + + 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); + } + + // Nettoyer la caméra quand on quitte la page + window.onbeforeunload = function() { + stopCamera(); + }; + +