altcha->enabled()) { return; } $data = json_decode($request->getContent(), true); $payload = is_array($data) ? (string) ($data['altcha'] ?? '') : ''; if (!$this->altcha->verifySolution($payload)) { throw new AppException(ErrorCodes::ERR_CAPTCHA_001, null, 422, 'altcha'); } } }