Skip to content

Commit

Permalink
[IMP] Do not enable recaptcha by default
Browse files Browse the repository at this point in the history
  • Loading branch information
edescalona committed Dec 2, 2024
1 parent 0193aae commit 38142b7
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions website_recaptcha_v2_login/models/res_config_settings.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# SPDX-FileCopyrightText: 2010-2014 Elico Corp
# SPDX-FileContributor: Augustin Cisterne-Kaas <augustin.cisterne-kaas@elico-corp.com>
# SPDX-FileCopyrightText: 2015 Tech-Receptives Solutions Pvt. Ltd.
# SPDX-FileCopyrightText: 2019 Simone Orsi - Camptocamp SA
# SPDX-FileCopyrightText: 2019 Coop IT Easy SC
#
# SPDX-License-Identifier: AGPL-3.0-or-later

from odoo import fields, models


class ResConfigSettings(models.TransientModel):
_inherit = "res.config.settings"

recaptcha_v2_enabled = fields.Boolean(
related="website_id.recaptcha_v2_enabled", readonly=False
)
recaptcha_v2_site_key = fields.Char(
related="website_id.recaptcha_v2_site_key", readonly=False
)
recaptcha_v2_secret_key = fields.Char(
related="website_id.recaptcha_v2_secret_key", readonly=False
)
Empty file.
Empty file.

0 comments on commit 38142b7

Please sign in to comment.