Website reCAPTCHA v2

website_recaptcha_v2
REPOSITORY
REPOSITORYOCA/website
GIT
GIThttps://github.com/OCA/website.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/website/tree/16.0/website_recaptcha_v2
VERSION
VERSION 1.0.0
CATEGORY
CATEGORYWebsite
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), Coop IT Easy SC, Elico Corp, Tech Receptives
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), Coop IT Easy SC, Elico Corp, Tech Receptives
COMMITTERS
COMMITTERSWeblate, OCA-git-bot, oca-ci, hugues de keyzer
WEBSITE
WEBSITEhttps://github.com/OCA/website
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 15:04:55
ODOO DEPENDENCIES
ODOO DEPENDENCIES odoo/odoo:
    - website
    - digest
    - mail
    - base
    - base_setup
    - web
    - bus
    - web_tour
    - portal
    - web_editor
    - http_routing
    - auth_signup
    - resource
    - social_media
    - google_recaptcha
    - utm
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION

Code Analysis

Views touched (2)
XML IDNameModelTypeStatus
recaptcha_widget reCAPTCHA widget ir.ui.view qweb New
res_config_settings_view_form Website settings res.config.settings xpath Inherits website.res_config_settings_view_form
Models touched (2)

New fields (3)
  • recaptcha_v2_enabled Boolean
    readonly=False related='website_id.recaptcha_v2_enabled'
  • recaptcha_v2_secret_key Char
    readonly=False related='website_id.recaptcha_v2_secret_key'
  • recaptcha_v2_site_key Char
    readonly=False related='website_id.recaptcha_v2_site_key'
Public methods (0)

No public methods.

New fields (3)
  • recaptcha_v2_enabled Boolean
    args: 'Enable reCAPTCHA v2'
  • recaptcha_v2_secret_key Char
    args: 'Secret Key (v2)'
  • recaptcha_v2_site_key Char
    args: 'Site Key (v2)'
Public methods (1)
  • 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.