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']) ]; }