This commit is contained in:
KANE LAZENI 2026-02-24 05:57:08 +00:00
parent 33262e8937
commit d6347ce8d1
2 changed files with 3 additions and 2 deletions

View File

@ -761,7 +761,7 @@
countdownEl.textContent = `Redirection dans ${remaining} secondes...`;
remaining--;
if (remaining <= 0) {
if (remaining < 0) {
clearInterval(interval);
callback();
}

View File

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