Skip to content
Health
47/100
poor
  • Security10/25
    1 grave, 0 minor
  • Activity20/25
    Last human commit 11 months ago
  • Required by5/25
    0 modules depend on it
  • Maturity12/25
    In 2 Odoo series since 16.0

Heuristic over the facts below, not an audit · How it's computed

Security findings
Grave / minor (static analysis)
Required by
0
Modules depending on it
External deps
1 pip · 0 bin
Python packages / system binaries
License
AGPL-3
No conflicts with its dependencies
Folder size
0.05 MB
Module directory on disk
Code analysis 0 migration notes 2 models 2 views 0 HTTP endpoints

Description

This module allows to use reCAPTCHA v2 on website forms.

It is a helper module that only provides the widget and the validation logic which can be used by other modules to actually display it on website forms and check whether the user entry is valid.

This module originally comes from website_recaptcha_reloaded from Tech Receptives, which itself comes from website_recaptcha from Elico Corp.

Dependencies

Odoo dependencies
Python dependencies
geoip2
System dependencies
None
Required by
None

Code analysis

Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.

Views touched 2

XML IDNameModelTypeStatus
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_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.

Loading…