Feature #308

Support for overriding the reCaptcha field validation

Added by George Notaras over 2 years ago. Updated over 2 years ago.

Status:ClosedStart date:11/10/2010
Priority:NormalDue date:11/14/2010
Assignee:George Notaras% Done:

100%

Category:-Estimated time:2.00 hours
Target version:0.3.2

Description

Reasons for overriding the reCaptcha field validation:
  • app testing.
  • use of the app, that incorporates django-recaptcha-works, in a secure environment without messing with the code.
Implementation options:
  1. make the reCaptcha field respect the required=False attribute. Disadvantage: editing the code is required
  2. add a new setting that enables or disables the reCaptcha field globally (all forms that use it). Disadvantage: it is not possible to disable the field on a per form basis.

History

#1 Updated by George Notaras over 2 years ago

  • Status changed from New to Assigned
  • Assignee set to George Notaras
  • Target version set to 0.3.2

#2 Updated by George Notaras over 2 years ago

  • % Done changed from 0 to 10
  • Estimated time changed from 1.00 to 2.00
Regarding the second resolution, investigate which is the best way to deactivate a form field based on a setting.
  1. evaluate the setting in RecaptchaField.__init__()
  2. evaluate the setting both in RecaptchaField.clean() and RecaptchaWidget.render()

#3 Updated by George Notaras over 2 years ago

  • % Done changed from 10 to 90

#4 Updated by George Notaras over 2 years ago

  • Status changed from Assigned to Closed
  • % Done changed from 90 to 100

Finally added support for checking both the required=False field attribute so as to be able to override the validation on a single form, and also added the new RECAPTCHA_VALIDATION_OVERRIDE setting, which causes validation overriding for all reCaptcha protected forms.

Also available in: Atom PDF