Skip to Content
Menu
Dette spørgsmål er blevet anmeldt
2 Besvarelser
14216 Visninger

Hello everyone,

I have tried to access recaptcha feature in odoo 14 by configuring it using site key and secret key which i got from google recaptcha page but didn't get recaptcha image in my login page.

 Here are the steps that i followed:-

  • visited this url : https://www.google.com/recaptcha/admin/create 

  • then added label

  • selected recaptcha v3 as type

  • added domain as localhost

  • and accepted terms and conditions and clicked on submit button,

  • got site key and secret from there and pasted in odoo.

But didn't get recaptcha on login or signup page

Are my steps correct or anything i am missing? 

Do anyone have any idea how to enable and use this feature? 

Please guide me about this feature.


Avatar
Kassér
Bedste svar

Hello Gautam,

Once you have enabled reCAPTCHA in the settings it is by default enabled on any pages that have a form or sign-in.  You can verify this by opening the developer mode when loading the form - for example -

  1. open http://localhost:8069/contactus

  2. right-click and select the option to 'Inspect Page'

  3. select the 'Sources' tab

  4. in the list of source domains, you will see 'www.recaptcha.net':


If you want to have the Google reCAPTCHA term and conditions showing on the page, you need to enable this as follows:

  1. Go to the page where you want the terms to be visible

  2. Edit the page

  3. select the form 'block'

  4. select the block 'Options'

  5. enable the switch for Google reCAPTCHA


This will add the text as shown here:


I trust this answers your question.


Avatar
Kassér
Forfatter

hello robort, Thanks for your response. I am unable to see recaptcha terms and condition page in source while inspecting element. According to me, it is not showing page(recaptcha terms and condition page) because i have already accepting terms and condition while creating api key and secret in the above mentioned link. So i don't think i have to accept them again. Any other solution for this?

Hello Gautam,

Please can you check on the following:

1. Enable reCAPTCHA in Odoo - Settings > General Settings > Integrations

2. Registered a new site in the Google reCAPTCHA portal - making sure to:

a. choose v3 option

b. include 'localhost' and '127.0.0.1' in the domains list

3. Create a new page in Odoo and add a 'form' snippet to the page (don't save the page yet)

4. Select the 'Submit' button - you will see the 'Style' panel on the right-hand side.

5. Scroll down till you find the switch called 'Show ReCaptcha Policy' and enable it.

6. Save the page now, visit that page in an incognito or private browser and check for the terms and conditions. I recommend testing the page using http://127.0.01/{form-page} and http://localhost/{form-page}

Let me know if you don't see the terms and conditions after this.

Note the following comment regarding Google reCAPTCHA and localhost: https://developers.google.com/recaptcha/docs/faq?hl=en#im-getting-an-error-localhost-is-not-in-the-list-of-supported-domains.-what-should-i-do

Let me know if you don't manage to get this working.

Forfatter

Hello robert, I am getting this terms and condition now but not able to get the recaptcha screen or images to verify it's not robot. That is what i want but not able use this feature. please let me know if i am able to explain my scenario.

Hello Gautam,

I am glad that you have the Google reCAPTCHA functionality working in Odoo 14 now.

When using reCAPTCHA v3 you will *not* see the typical reCAPTCHA screen or images - these are only shown when using reCAPTCHA v2.

Odoo 14 natively only supports reCAPTCHA v3 which uses pure JavaScript to detect whether the visitor is a robot/genuine.

You can read more about the differences between v2 and v3 here:- https://developers.google.com/recaptcha/docs/versions

I hope this helps resolve your question.

Forfatter

Thanks robert.. it solves my queries and thanks a lot for sharing such valuable links.

Bedste svar

Here is the for recaptcha Use it I am sure it will help you alot https://apps.odoo.com/apps/modules/12.0/login_signup_captcha/


This is the very useful guide I hope it will help you too please visit that link too.

https://apps.odoo.com/apps/modules/13.0/ehcs_login_captcha/

Avatar
Kassér
Forfatter

Hello muhammad, thanks for your response but i want to use odoo 14 default functionality which provide google recaptcha in general settings of odoo14. Please let me know how can i configure as per odoo 14 default functionality.

Related Posts Besvarelser Visninger Aktivitet
1
maj 24
3263
1
apr. 24
26976
1
nov. 22
2684
2
jul. 22
3419
2
jul. 22
3222