• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

liqd / adhocracy-plus / 18100763815

29 Sep 2025 02:39PM UTC coverage: 89.146% (-0.1%) from 89.261%
18100763815

push

github

web-flow
[ST-887] app/captcha: change to prosopo captcha (#2977)

25 of 43 new or added lines in 5 files covered. (58.14%)

1 existing line in 1 file now uncovered.

6053 of 6790 relevant lines covered (89.15%)

0.89 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

66.67
/apps/captcha/fields.py
1
from django import forms
1✔
2
from django.utils.translation import gettext_lazy as _
1✔
3

4
from .utils import verify_token
1✔
5
from .widgets import ProsopoCaptchaWidget
1✔
6

7

8
class ProsopoCaptchaField(forms.CharField):
1✔
9
    widget = ProsopoCaptchaWidget
1✔
10

11
    def validate(self, value):
1✔
12
        super().validate(value)
1✔
13

NEW
14
        if not value:
×
NEW
15
            raise forms.ValidationError(_("Please complete the captcha."))
×
16

17
        # Verify the token with Prosopo server
NEW
18
        if not verify_token(value):
×
UNCOV
19
            raise forms.ValidationError(
×
20
                _("Captcha verification failed. Please try again.")
21
            )
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc