Skip to content

Commit

Permalink
Merge pull request smcmahon#187 from tkimnguyen/master
Browse files Browse the repository at this point in the history
change captcha verification message for smcmahon#186
  • Loading branch information
mauritsvanrees committed Dec 16, 2016
2 parents 6e7018b + 7d99f56 commit f5fa695
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion CHANGES.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ Change History
1.8.4 (unreleased)
------------------

- Nothing changed yet.
- change captcha verification message for #186
[tkimnguyen]


1.8.3 (2016-12-06)
Expand Down
2 changes: 1 addition & 1 deletion Products/PloneFormGen/validators/CaptchaValidator.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def __call__(self, value, *args, **kwargs):
request = kwargs.get('REQUEST')
captcha = getMultiAdapter((context, request), name='captcha')
if not captcha.verify(value):
return ("Verification failed: Please type the characters you see below.")
return ("Verification failed: Please respond to the captcha below.")
return 1

validation.register(CaptchaValidator('isCorrectCaptcha'))

0 comments on commit f5fa695

Please sign in to comment.