SciPost Code Repository

Skip to content
Snippets Groups Projects
Commit c71f5011 authored by Jorran de Wit's avatar Jorran de Wit
Browse files

Add ReCaptcha to forms, remove old captcha

parent 61753593
No related branches found
No related tags found
No related merge requests found
......@@ -31,6 +31,5 @@ urlpatterns = [
url(r'^submission/', include('submissions.urls', namespace="submissions")),
url(r'^theses/', include('theses.urls', namespace="theses")),
url(r'^thesis/', include('theses.urls', namespace="theses")),
url(r'^captcha/', include('captcha.urls')),
# url(r'^captcha/', include('captcha.urls')),
]
......@@ -9,8 +9,8 @@ django-guardian==1.4.6
django-haystack==2.5.1
django-mathjax==0.0.5
django-mptt==0.8.6
django-simple-captcha==0.5.3
django-sphinxdoc==1.5.1
django-recaptcha==1.2.1
django-webpack-loader==0.4.1
djangorestframework==3.5.3
docutils==0.12
......
......@@ -6,7 +6,7 @@ from django.db.models import Q
from django_countries import countries
from django_countries.widgets import CountrySelectWidget
from django_countries.fields import LazyTypedChoiceField
from captcha.fields import CaptchaField
from captcha.fields import ReCaptchaField
from crispy_forms.helper import FormHelper
from crispy_forms.layout import Layout, Div, Field, HTML, Submit
......@@ -60,7 +60,9 @@ class RegistrationForm(forms.Form):
username = forms.CharField(label='* Username', max_length=100)
password = forms.CharField(label='* Password', widget=forms.PasswordInput())
password_verif = forms.CharField(label='* Verify pwd', widget=forms.PasswordInput())
captcha = CaptchaField(label='* Answer this simple maths question:')
captcha = ReCaptchaField(attrs={
'theme' : 'clean',
}, label='* Answer this simple maths question:')
class DraftInvitationForm(forms.ModelForm):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment