From d6347ce8d17c9339eeba98fcc76b06adcdad81a6 Mon Sep 17 00:00:00 2001 From: KANE LAZENI Date: Tue, 24 Feb 2026 05:57:08 +0000 Subject: [PATCH] a --- Contestation/Demandereconnaissancefaciale.php | 2 +- Contestation/verify_facial_api.php | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Contestation/Demandereconnaissancefaciale.php b/Contestation/Demandereconnaissancefaciale.php index 5aa722c..c4bd7d4 100755 --- a/Contestation/Demandereconnaissancefaciale.php +++ b/Contestation/Demandereconnaissancefaciale.php @@ -761,7 +761,7 @@ countdownEl.textContent = `Redirection dans ${remaining} secondes...`; remaining--; - if (remaining <= 0) { + if (remaining < 0) { clearInterval(interval); callback(); } diff --git a/Contestation/verify_facial_api.php b/Contestation/verify_facial_api.php index b67e902..676ce6d 100644 --- a/Contestation/verify_facial_api.php +++ b/Contestation/verify_facial_api.php @@ -191,7 +191,8 @@ class FacialVerificationAPI { 'success' => false, 'match' => false, 'message' => $comparisonResult['error'], - 'attempts_remaining'=> $this->maxAttempts - ($request['attempts'] + 1) + // 'attempts_remaining'=> $this->maxAttempts - ($request['attempts'] + 1) + 'attempts_remaining'=> $this->maxAttempts - $request['attempts']) ]; }