Private
Public Access
1
0

chg: pkg: make compatible the whole project with bare metal AND with docker #4

This commit is contained in:
2026-04-13 11:56:50 +02:00
parent e9c6795eb7
commit 4239177563
10 changed files with 240 additions and 9 deletions

View File

@@ -58,6 +58,14 @@ readonly class RecaptchaService
->request('POST', self::SITEVERIFY_URL, ['body' => $body])
->toArray();
$this->logger->info('reCAPTCHA verify response', [
'success' => $data['success'] ?? null,
'score' => $data['score'] ?? null,
'hostname' => $data['hostname'] ?? null,
'error-codes' => $data['error-codes'] ?? [],
'token_length' => strlen($token),
]);
return ($data['success'] ?? false) === true
&& ($data['score'] ?? 0.0) >= self::SCORE_THRESHOLD;
} catch (\Throwable $e) {