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

✨ [#2752] Add accessible captcha #1397

Closed
wants to merge 4 commits into from

Conversation

jiromaykin
Copy link
Contributor

@jiromaykin jiromaykin commented Sep 17, 2024

Adding a package for captcha that is more accessible than 'mangled' images etc.
https://taiga.maykinmedia.nl/project/open-inwoner/task/2752

New PR: #1417

Screenshot 2024-09-26 at 09 54 17

Good to know:

1. For users with visual impairments, image-based CAPTCHAs present multiple challenges. Text within these CAPTCHAs may be distorted or overlaid on complex backgrounds, making them hard to read
2. Audio CAPTCHAs, which are meant to offer an alternative to visual CAPTCHAs, also have their issues. Often, the audio quality is poor
3. Interactive CAPTCHAs requiring precise mouse movements or quick responses can be a barrier for individuals with motor impairments
4. CAPTCHAs, which often involve complex instructions, problem-solving, deciphering ambiguous images, or solving puzzles, can impose an unnecessary cognitive load and be taxing for users with cognitive disabilities.
5. Many CAPTCHAs are not compatible with assistive technologies, such as screen readers

@codecov-commenter
Copy link

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 94.94%. Comparing base (7f55115) to head (15dd708).

Additional details and impacted files
@@           Coverage Diff            @@
##           develop    #1397   +/-   ##
========================================
  Coverage    94.94%   94.94%           
========================================
  Files         1043     1043           
  Lines        38290    38291    +1     
========================================
+ Hits         36353    36354    +1     
  Misses        1937     1937           

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

@jiromaykin jiromaykin changed the title 🚧 [#2752] Experiment with captcha ✨ [#2752] Add accessible captcha Sep 26, 2024
@jiromaykin jiromaykin force-pushed the feature/2752-simple-captcha branch 2 times, most recently from 832aae2 to 3f197a3 Compare September 26, 2024 07:53
@jiromaykin jiromaykin marked this pull request as ready for review September 26, 2024 08:03
@@ -158,6 +157,7 @@
"two_factor",
"two_factor.plugins.webauthn",
"maykin_2fa",
"simplemathcaptcha",
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Due to this change my linter reformatted the file.

@@ -45,6 +47,12 @@ class ContactForm(Form):
widget=forms.Textarea(attrs={"rows": "5"}),
required=True,
)
captcha = MathCaptchaField(
label=_("Beantwoord deze rekensom"),
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This sentence has to be in "actief taalgebruik" and it also has to be "B1 niveau" so this is the best I could come up with.

@@ -447,6 +447,10 @@ django-simple-certmanager==1.4.1
# -r requirements/base.txt
# django-digid-eherkenning
# zgw-consumers
django-simple-math-captcha==2.0.1
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Not sure if this is enough for adding package.

@jiromaykin jiromaykin marked this pull request as draft September 30, 2024 12:07
@jiromaykin jiromaykin closed this Oct 3, 2024
@jiromaykin jiromaykin deleted the feature/2752-simple-captcha branch October 3, 2024 08:01
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.

2 participants