> ## Documentation Index
> Fetch the complete documentation index at: https://docs.t3planet.de/en/latest/llms.txt
> Use this file to discover all available pages before exploring further.

# Custom Integration

> To integrate nsFriendlyCaptcha in your own extensions, 2 steps are required:

To integrate ns\_Friendly\_Captcha in your own extensions, 2 steps are required:

**Step 1.** Add this code to your custom form.

```python theme={"theme":{"light":"github-light","dark":"github-dark"}}
<div class="frc-captcha" data-sitekey="{your-site-key}" data-callback="myCallback"  data-start="none" data-lang="en"></div>
```

**Step 2.** Configure this code in your relevant controller action.

```python theme={"theme":{"light":"github-light","dark":"github-dark"}}
$validCaptcha = false;
$captchaService = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\NITSAN\NsFriendlycaptcha\Services\CaptchaService::class);
$captchaServiceValidation = $captchaService->validateReCaptcha();
if (isset($captchaServiceValidation['verified'])) {
 if ($captchaServiceValidation['verified'] === true) {
  $validCaptcha = true;
  }
 }
```
