Skip to content

Commit

Permalink
Change reCaptcha for a non-google one
Browse files Browse the repository at this point in the history
Closes #298
  • Loading branch information
HacKanCuBa committed Apr 3, 2018
1 parent c651ce6 commit 43a99be
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions eventol/eventol/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
url(r'^accounts/profile/', TemplateView.as_view(template_name='account/profile.html'),
name="user_profile"),
url(r'^accounts/', include('allauth.urls')),
url(r'^captcha/', include('captcha.urls')),
url(r'^jsi18n/$', JavaScriptCatalog.as_view(),
{'domain': 'djangojs', 'packages': None}, name='javascript-catalog')
] + static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
Expand Down
6 changes: 3 additions & 3 deletions eventol/manager/forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import logging

from collections import OrderedDict
from captcha.fields import ReCaptchaField
from captcha.fields import CaptchaField
from dal import autocomplete
from django import forms
from django.core.exceptions import ValidationError
Expand Down Expand Up @@ -263,7 +263,7 @@ class Meta(object):

class AttendeeRegistrationForm(ModelForm):
repeat_email = forms.EmailField(label=_("Repeat Email"))
captcha = ReCaptchaField(label=_("Are you a human?"))
captcha = CaptchaField(label=_("Are you a human?"))

field_order = ['first_name', 'last_name', 'nickname', 'additional_info',
'is_installing', 'email', 'repeat_email', 'captcha',
Expand Down Expand Up @@ -498,7 +498,7 @@ def signup(self, request, user):

class ActivityProposalForm(ModelForm):
repeat_email = forms.EmailField(label=_("Repeat Email"))
captcha = ReCaptchaField(label=_("Are you a human?"))
captcha = CaptchaField(label=_("Are you a human?"))

field_order = ['event', 'title', 'speakers_names', 'abstract',
'long_description', 'speaker_contact', 'repeat_email',
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ django-import-export==0.6.0
django-jquery-js==3.1.1
django-js-asset==0.1.1
django-mailgun==0.9.1
django-recaptcha==1.3.1
django-simple-captcha==0.5.6
django-webpack-loader==0.5.0
djangorestframework==3.7.3
djangorestframework-filters==0.10.2
Expand Down

0 comments on commit 43a99be

Please sign in to comment.