Debian Codegraph @

doc/sources/admin/recaptcha.rst

raw
1 reCaptcha
2 =========
3
4 Presentation
5 ------------
6
7 Captcha system provided by `Google <https://about.google>`__.
8
9 See `Google reCAPTCHA <https://www.google.com/recaptcha/about/>`__
10 for more.
11
12 Configuration
13 -------------
14
15 Configure captcha like :doc:`LLNG internal captcha<captcha>` but use a
16 "custom captcha module", set:
17
18 - **Captcha module** to "``::Captcha::ReCaptcha``" or "``::Captcha::ReCaptcha3``" for version 3
19 - in **Captcha module options**, add the following keys
20
21 - ``dataSiteKey``: the key ID given in Google console
22 - ``secretKey``: the secret key
23 - ``score`` *(version 3 only)*: the minimal score. Default to 0.5
24
25 Then adapt the "Content-Security-Policy" headers, cspDefault and cspScript
26 should be set to :
27
28 ::
29
30 https://www.google.com https://www.gstatic.com 'self'
31
32
33 .. important::
34 Starting from version 2.23.0, authentication form is locked until ReCaptcha
35 is loaded. On slow networks, this avoids getting "Bad captcha" answers,
36 especially with ReCaptcha version 3