# j-reCAPTCHA

> Display a reCAPTCHA challenge and bind its response token to the model.

Framework: jcomponent20
Product: jComponent 20 (jcomponent@20)
Language: en
Content-SHA256: 58ba32aec7fe161b4d86b4ecb1234b86532035a71aeb427e32658a2b3e2872df
Snapshot: c0700e321579725c5cf4f5ace1ad7d2866d1b4f93c24a63c0b41b6b7998e976c
Sources: components@910ed1a86f6e72b4f031d3ad0dc7844f9fc5cb8e
Review: not-recorded

- [Create reCAPTCHA API KEY](https://www.google.com/recaptcha/admin)
- [How to __verify reCAPTCHA response__ on the server-side?](https://blog.totaljs.com/blogs/tutorials/20161211-how-to-verify-recaptcha-with-help-of-total-js/)


__Configuration__:
- `key {String}` (required) Google API key
- `required {Boolean}` enables `required`
- `theme {String}` can be `light` or `dark` (default: `light`)

Use it with `<ui-component name="recaptcha">`. When the component is not loaded yet, jComponent downloads it on first use from the address in `DEF.fallback` (the Componentator CDN by default). Author: Peter Širka. Source: the Componentator components repository, MIT license.

```html example.html
<ui-component name="recaptcha" path="form.recaptcha" config="key:6Ldreg4UAAAAABGC2PK9RmKupaPCiCmbifZrUXc6"></ui-component>

<script>
	var form = {};
</script>
```
