Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[#2831] Fix contactform math captcha #1462

Merged
merged 1 commit into from
Oct 29, 2024
Merged

Conversation

pi-sigma
Copy link
Contributor

@pi-sigma pi-sigma commented Oct 23, 2024

The MathCaptcha field on the contactform is replaced with a simple IntegerField and the captcha logic is moved to the contactform view.

Taiga: https://taiga.maykinmedia.nl/project/open-inwoner/issue/2831

@pi-sigma pi-sigma force-pushed the issue/2831-mathcaptcha branch 5 times, most recently from c9f8622 to 949e6d3 Compare October 24, 2024 11:32
@pi-sigma pi-sigma changed the title [#2831] Fix contactform math captcha field [#2831] Fix contactform math captcha Oct 24, 2024
    - replace dedicated MathCaptcha field with simple IntegerField
      and perform actual captcha logic in the form view (the field
      was not thread-safe, the values - question + answer - had to
      be stored in the session, so there is no reason to keep the
      field)
@codecov-commenter
Copy link

Codecov Report

Attention: Patch coverage is 97.91667% with 1 line in your changes missing coverage. Please review.

Project coverage is 94.59%. Comparing base (5391b5f) to head (a3c0487).

Files with missing lines Patch % Lines
src/open_inwoner/openklant/forms.py 90.00% 1 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #1462      +/-   ##
===========================================
- Coverage    94.59%   94.59%   -0.01%     
===========================================
  Files         1063     1063              
  Lines        39681    39672       -9     
===========================================
- Hits         37537    37527      -10     
- Misses        2144     2145       +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@pi-sigma pi-sigma marked this pull request as ready for review October 28, 2024 12:37
@alextreme alextreme merged commit 5756253 into develop Oct 29, 2024
20 checks passed
@alextreme alextreme deleted the issue/2831-mathcaptcha branch October 29, 2024 13:12
@alextreme
Copy link
Member

I haven't heard complaints about the captcha, but is this issue worthwhile to release a 1.22.2? If not I'll remove the label

@swrichards
Copy link
Contributor

I haven't heard complaints about the captcha, but is this issue worthwhile to release a 1.22.2? If not I'll remove the label

Bobby suggested it was a pressing issue for at least one gemeente, but we'll check in the meeting this morning.

@alextreme alextreme removed the 1.22.2 label Nov 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants