==================================
Enable recaptcha on client sign up
==================================
.. important::
ReCaptcha feature only works with Google reCaptcha V2
In order to enable recaptcha on Fleio client sign up you will have to:
1. Register a new site in the google recaptcha admin panel. We will need the `site key` and `secret key`.
2. Add the site key in the enduser.config.json file:
.. code-block:: bash
fleio edit enduser.config.json
...
"logoutRedirect": null,
"usernameInputLabel": null,
"reCaptchaSiteKey" : "HERE WE PASTE THE SITE KEY"
}
3. Add the secret key at the end of the settings.py file:
.. code-block:: bash
fleio edit settings.py
RECAPTCHA_SECRET = 'HERE WE PASTE THE SECRET KEY'
Save and press ``Y`` to restart fleio services.
4. Insert the captcha script into the enduser index.html file.
We need to add the following script inside the ``/var/webapps/fleio/frontend/enduser/index.html``:
.. code-block:: bash
This needs to be done by following :ref:`this example`.
If everything was properly configured, you should be able to see the recaptcha verification on the client sign up page:
.. image:: /_static/images/newstaff/user_signup/recapctha_signup.png