Ignore:
Timestamp:
10/11/07 18:12:36 (12 years ago)
Author:
tarmo
Message:

Closes #1558. If captcha is not enabled, then nobody can pass
the captcha humanity test. So for exercises to work (as in sending
email) captcha must be enabled.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ExerciseMaterial.py

    r2082 r2083  
    179179            putils.addPortalMessage(msg, type='warn') 
    180180            return REQUEST.RESPONSE.redirect(self.absolute_url()) 
     181 
     182        if not self.lemill_tool.validateCaptcha(REQUEST.get('captcha')): 
     183            msg = _(u"Invalid answer for humanity test.") 
     184            putils.addPortalMessage(msg, type='warn') 
     185            return REQUEST.RESPONSE.redirect(self.absolute_url()) 
     186         
    181187        exercise_body = self.getBodyText() 
    182188 
Note: See TracChangeset for help on using the changeset viewer.