Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Exclude the captcha if form is not set to use captcha.

  • Loading branch information...
commit 33f58cba70d3156b907cad7949625f2e2b9cc211 1 parent 6e6c1d8
@jennyq jennyq authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  tendenci/addons/memberships/views.py
View
2  tendenci/addons/memberships/views.py
@@ -1343,7 +1343,7 @@ def membership_default_add(request,
join_under_corporate=join_under_corporate,
corp_membership=corp_membership)
captcha_form = CaptchaForm(request.POST or None)
- if request.user.is_authenticated():
+ if request.user.is_authenticated() or not app.use_captcha:
del captcha_form.fields['captcha']
if request.method == 'POST':
Please sign in to comment.
Something went wrong with that request. Please try again.