Skip to content

Commit 3d60532

Browse files
authored
Merge pull request #234 from plone/hcaptcha-fix-master-branch
Apply validation for all captchas
2 parents 0038ca4 + 750128f commit 3d60532

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

news/234.bugfix

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Apply validation for all captchas. @ksuess

plone/app/discussion/browser/validator.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ def validate(self, value):
4949
registry = queryUtility(IRegistry)
5050
settings = registry.forInterface(IDiscussionSettings, check=False)
5151

52-
if settings.captcha in ("captcha", "recaptcha", "norobots"):
52+
if settings.captcha != "disabled":
5353
captcha = getMultiAdapter(
5454
(aq_inner(self.context), self.request), name=settings.captcha
5555
)

0 commit comments

Comments
 (0)