TIP: You can type at any time to perform a new search.
Website reCAPTCHA v2
website_recaptcha_v2 · OCA/website
- Repository
- OCA/website · module folder · Try on Runboat
- Module version
- 1.0.0
- Category
- Website
- Folder size
- 0.07 MB
- License
- AGPL-3
- Application
- No
- Auto-installable
- No
- Website
- https://github.com/OCA/website
- Last tracking update
- 2026-08-07 08:09:25
- Authors
- Tech Receptives, Odoo Community Association (OCA), Elico Corp, Coop IT Easy SC
- Maintainers
- Tech Receptives, Odoo Community Association (OCA), Elico Corp, Coop IT Easy SC
- Committers
- Weblate, OCA-git-bot, oca-ci, hugues de keyzer
Code Analysis ⓘ
Views touched (2)
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
recaptcha_widget |
reCAPTCHA widget | ir.ui.view | qweb | New |
res_config_settings_view_form |
Website settings | res.config.settings | form | Inherits website.res_config_settings_view_form |
HTTP endpoints (0)
No HTTP endpoints found for this module.
Models touched (2)
New fields (3)
-
recaptcha_v2_enabledBooleanreadonly=Falserelated='website_id.recaptcha_v2_enabled' -
recaptcha_v2_secret_keyCharreadonly=Falserelated='website_id.recaptcha_v2_secret_key' -
recaptcha_v2_site_keyCharreadonly=Falserelated='website_id.recaptcha_v2_site_key'
No public methods.
New fields (3)
-
recaptcha_v2_enabledBooleanargs: 'Enable reCAPTCHA v2' -
recaptcha_v2_secret_keyCharargs: 'Secret Key (v2)' -
recaptcha_v2_site_keyCharargs: 'Site Key (v2)'
-
is_recaptcha_v2_valid(self, form_values)Checks whether the reCAPTCHA v2 challenge has been correctly solved. form_values must be a dictionary containing the form values. Returns a (bool, str) tuple. The first element tells whether the CAPTCHA is valid or not. The second is the error message when applicable (or an empty string). If reCAPTCHA is disabled in the settings, this method behaves as if the CAPTCHA was correctly solved, but without doing any check.