Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
2 Odpowiedzi
7705 Widoki

Hi,
I generated Google ReCaptcha v3 in Odoo with a 0.5 score. But whenever I try to submit a form I get a " suspicious activity detected by Google reCapthca" error even though Iower the score.
Anyone faced with the same issue? Any suggestion on how can I protect my forms without Google reCaptcha? Thanks.

Awatar
Odrzuć
Najlepsza odpowiedź

got the same.

In my case in logs was:
"WARNING odoo odoo\\.addons\\.google_recaptcha\\.models\\.ir_http:\\ Trial\\ captcha\\ verification\\ for\\ ip\\ address\\ XXX\\.XXX\\.XXX\\.XXX\\ failed\\ error\\ codes\\ \\['incorrect\\-captcha\\-sol'\\]\\.\\ "

solution:
go\\ to\\ Google\\ reCaptcha\\ admin\\ console\\ https://www.google.com/recaptcha/admin/
in Domains section add proper domains names

Awatar
Odrzuć
Autor

Thank you, it is solved!

hi cavuu
in the domain section, if we would like to try it first in the localhost and i entry the domain as localhost and still get the error message, is it because the localhost i entry as domain or maybe anything else?

Najlepsza odpowiedź

Hi,

To set up Google reCAPTCHA in Odoo for a local environment, you can follow these steps:


1. Create Site Key and Secret Key:

Go to the Google reCAPTCHA admin console ( https://www.google.com/recaptcha/admin/create ).

Create a new reCAPTCHA by entering a label for the reCAPTCHA.

Under the "Domains" section, add localhost (or your specific domain, if necessary).

Example: Add localhost for local development or add a custom domain if you are testing on a specific local setup.

After entering the required details, click the Submit button.

Reference Screenshot: https://webkul.chatwhizz.com/share/screenshot/67777568ee1b4e073aed42c7


2. Retrieve the Site Key and Secret Key:

After submitting the form, you will be redirected to a page where you'll find the site key and secret key.

Keep both keys handy for the next step.


3. Add Keys to Odoo Settings:

Open the Odoo admin interface and navigate to the settings page.

Locate the section for Google reCAPTCHA (typically under "General Settings").

Paste the site key and secret key you obtained earlier into the respective fields.

Reference Screenshot: https://webkul.chatwhizz.com/share/screenshot/67777982f2e9336a27cd0220

4. Test the Contact Us Page:

Go to your Odoo Contact Us page and make sure you are opening the odoo with the localhost and port not with the ip and port. For exp -> http://localhost:8017/contactus

For exp -> http://localhost:8017/contactus


Fill out the form and submit the form to verify everything is working properly. Ref> https://webkul.chatwhizz.com/share/screenshot/67777b0974dfab06b5aa140f https://webkul.chatwhizz.com/share/screenshot/67777b0974dfab06b5aa140f


Now, your Odoo instance should be set up with Google reCAPTCHA on the contact form.

If you still face any issues or want further assistance you can reach us at support@webkul.com

Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
0
sty 21
2417
5
lip 19
4898
1
maj 16
3859
3
kwi 16
9949
2
cze 15
8563