Skip to content

[16.0][ADD] website_recaptcha_v2_form - #1076

Open
edescalona wants to merge 1 commit into
OCA:16.0from
BinhexTeam:16.0-add-website_recaptcha_v2_form
Open

edescalona wants to merge 1 commit into
OCA:16.0from
BinhexTeam:16.0-add-website_recaptcha_v2_form

Conversation

@edescalona

@edescalona edescalona commented Dec 6, 2024 •

Copy link
Copy Markdown

@BinhexTeam
Adding recaptcha version 2 for the form snippets and also in the login, password reset and register forms.

@edescalona
edescalona force-pushed the 16.0-add-website_recaptcha_v2_form branch from 74618c9 to 8b4f216 Compare December 6, 2024 16:27

@christian-ramos-tecnativa christian-ramos-tecnativa left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for your contribution, check my comments please and remember to squash your commits into one.

Comment thread website_recaptcha_v2_form/controllers/main.py Outdated
Comment thread website_recaptcha_v2_form/models/website.py Outdated
Comment thread website_recaptcha_v2_form/readme/CONTRIBUTORS.md Outdated
Comment thread website_recaptcha_v2_form/readme/CONFIGURE.md
@edescalona
edescalona force-pushed the 16.0-add-website_recaptcha_v2_form branch from cf7f6d2 to e07469c Compare December 24, 2024 03:19

@jorgeglez1990 jorgeglez1990 left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Greetings,
It has been functionally tested, and it works correctly except when, on /web/login, we log in without verifying the reCAPTCHA, which results in a 500: Internal Server Error.

image

@edescalona

Copy link
Copy Markdown
Author

Greetings, It has been functionally tested, and it works correctly except when, on /web/login, we log in without verifying the reCAPTCHA, which results in a 500: Internal Server Error.

image

hello @jorgeglez1990 I'll check it out now, thanks for your cooperation.

Comment thread website_recaptcha_v2_form/models/res_config_settings.py Outdated
@edescalona

Copy link
Copy Markdown
Author

Hi @nobuQuartile , I solved the error you mentioned. When I can, please check and confirm. Thanks.

Comment thread website_recaptcha_v2_form/models/res_config_settings.py Outdated
@nobuQuartile

Copy link
Copy Markdown

Hi @nobuQuartile , I solved the error you mentioned. When I can, please check and confirm. Thanks.

Hi @edescalona, I checked and confirmed the problem is solved at the ruboat. Thanks.

@edescalona
edescalona force-pushed the 16.0-add-website_recaptcha_v2_form branch from 075722c to bce9e9b Compare April 21, 2025 19:27
@edescalona
edescalona force-pushed the 16.0-add-website_recaptcha_v2_form branch from bce9e9b to 1c2ed62 Compare July 8, 2025 20:17

@Honeyxilia Honeyxilia left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hello - first of all, thank you for the work on this module to add a basic controller functionnality c:

I had a couple of questions before approving the changes

Comment on lines +8 to +12
def valid_recaptcha(self, values):
valid, message = self.is_recaptcha_v2_valid(values)
if not valid:
raise AccessDenied(message)
return True

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this wrapper method is not really necessary, as it doesn't accomplish much more than link an AccessDenied exception with the error message, which should already be considered a fail state.
=> What is the reasonning behind this wrapper, that can't be fulfilled using the return tuple of is_recaptcha_v2_valid ?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @Honeyxilia , thanks for your comments. Basically, I want to show the message returned by the recaptcha verification as access denied, and then capture the exception in the controller.

Comment thread website_recaptcha_v2_form/views/auth_signup_login_templates.xml Outdated
@edescalona
edescalona force-pushed the 16.0-add-website_recaptcha_v2_form branch from 1c2ed62 to fe773e2 Compare July 28, 2025 23:19
@github-actions

Copy link
Copy Markdown

There hasn't been any activity on this pull request in the past 4 months, so it has been marked as stale and it will be closed automatically if no further activity occurs in the next 30 days.
If you want this PR to never become stale, please ask a PSC member to apply the "no stale" label.

@github-actions github-actions Bot added the stale PR/Issue without recent activity, it'll be soon closed automatically. label Nov 30, 2025
@github-actions github-actions Bot closed this Jan 4, 2026
@cubells

cubells commented Feb 22, 2026

Copy link
Copy Markdown
Member

@nobuQuartile @yostashiro @Honeyxilia

Can you accept changes?

Thanks a lot!

@jelenapoblet jelenapoblet reopened this Oct 9, 2026
@OCA-git-bot OCA-git-bot added series:16.0 mod:website_recaptcha_v2_form Module website_recaptcha_v2_form labels Oct 9, 2026
@jelenapoblet

Copy link
Copy Markdown

@Yoshiro009 this has been on the loop for long time now, we're going to push and merge during today's internal sprint

@jelenapoblet

Copy link
Copy Markdown

@jorgeglez1990 can you review this please ?

@jorgeglez1990 jorgeglez1990 left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@edescalona
edescalona force-pushed the 16.0-add-website_recaptcha_v2_form branch from fe773e2 to 0916317 Compare October 9, 2026 13:52
…orm snippets and also in the login, password reset and register forms.
@edescalona
edescalona force-pushed the 16.0-add-website_recaptcha_v2_form branch from 0916317 to 86cdcb1 Compare October 9, 2026 14:25
@edescalona

Copy link
Copy Markdown
Author

Hi @jelenapoblet , could you try merging this PR if you deem it appropriate?

@jelenapoblet

Copy link
Copy Markdown

/ocabot merge nobump

@OCA-git-bot

Copy link
Copy Markdown
Contributor

Hey, thanks for contributing! Proceeding to merge this for you.
Prepared branch 16.0-ocabot-merge-pr-1076-by-jelenapoblet-bump-nobump, awaiting test results.

@OCA-git-bot

Copy link
Copy Markdown
Contributor

@jelenapoblet The merge process could not be finalized, because command twine upload --disable-progress-bar --non-interactive --repository-url https://upload.pypi.org/legacy/ -u __token__ odoo_addon_website_recaptcha_v2_form-16.0.1.0.0.2-py3-none-any.whl failed with output:

Uploading distributions to https://upload.pypi.org/legacy/
Uploading odoo_addon_website_recaptcha_v2_form-16.0.1.0.0.2-py3-none-any.whl
�[33mWARNING �[0m Error during upload. Retry with the --verbose option for more details. 
�[31mERROR   �[0m HTTPError: 429 Too Many Requests from https://upload.pypi.org/legacy/  
         Too Many Requests                                                      

@jelenapoblet

Copy link
Copy Markdown

@OCA/pypi-support to reserve this name please. Thanks

@github-actions github-actions Bot removed the stale PR/Issue without recent activity, it'll be soon closed automatically. label Oct 11, 2026
@rousseldenis

Copy link
Copy Markdown

@jelenapoblet Could you retry merge ?

@jelenapoblet

Copy link
Copy Markdown

/ocabot merge nobump

@OCA-git-bot

Copy link
Copy Markdown
Contributor

This PR looks fantastic, let's merge it!
Prepared branch 16.0-ocabot-merge-pr-1076-by-jelenapoblet-bump-nobump, awaiting test results.

@OCA-git-bot

Copy link
Copy Markdown
Contributor

@jelenapoblet The merge process could not be finalized, because command twine upload --disable-progress-bar --non-interactive --repository-url https://upload.pypi.org/legacy/ -u __token__ odoo_addon_website_recaptcha_v2_form-16.0.1.0.0.2-py3-none-any.whl failed with output:

Uploading distributions to https://upload.pypi.org/legacy/
Uploading odoo_addon_website_recaptcha_v2_form-16.0.1.0.0.2-py3-none-any.whl
�[33mWARNING �[0m Error during upload. Retry with the --verbose option for more details. 
�[31mERROR   �[0m HTTPError: 429 Too Many Requests from https://upload.pypi.org/legacy/  
         Too Many Requests                                                      

bt-admin pushed a commit to brain-tec/website that referenced this pull request Oct 14, 2026
Signed-off-by jelenapoblet
@edescalona

Copy link
Copy Markdown
Author

@jelenapoblet could you please try again merge?

@jelenapoblet

Copy link
Copy Markdown

/ocabot merge nobump

@OCA-git-bot

Copy link
Copy Markdown
Contributor

What a great day to merge this nice PR. Let's do it!
Prepared branch 16.0-ocabot-merge-pr-1076-by-jelenapoblet-bump-nobump, awaiting test results.

@OCA-git-bot

Copy link
Copy Markdown
Contributor

@jelenapoblet The merge process could not be finalized, because command twine upload --disable-progress-bar --non-interactive --repository-url https://upload.pypi.org/legacy/ -u __token__ odoo_addon_website_recaptcha_v2_form-16.0.1.0.0.2-py3-none-any.whl failed with output:

Uploading distributions to https://upload.pypi.org/legacy/
Uploading odoo_addon_website_recaptcha_v2_form-16.0.1.0.0.2-py3-none-any.whl
�[33mWARNING �[0m Error during upload. Retry with the --verbose option for more details. 
�[31mERROR   �[0m HTTPError: 429 Too Many Requests from https://upload.pypi.org/legacy/  
         Too Many Requests                                                      

bt-admin pushed a commit to brain-tec/website that referenced this pull request Oct 20, 2026
Signed-off-by jelenapoblet
@jelenapoblet

Copy link
Copy Markdown

@OCA/pypi-support hi team, please reserve this one

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

mod:website_recaptcha_v2_form Module website_recaptcha_v2_form series:16.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

10 participants