diff --git a/templates/registration/password_change_form.html b/templates/registration/password_change_form.html index 6e6358e..d74f39e 100644 --- a/templates/registration/password_change_form.html +++ b/templates/registration/password_change_form.html @@ -6,5 +6,6 @@ {{ form.as_p }} + {% csrf_token %} {% endblock %} diff --git a/templates/registration/password_reset_confirm.html b/templates/registration/password_reset_confirm.html index aeda0bf..09fc9c1 100644 --- a/templates/registration/password_reset_confirm.html +++ b/templates/registration/password_reset_confirm.html @@ -9,6 +9,7 @@ {{ form.as_p }} + {% csrf_token %} {% else %} diff --git a/templates/registration/password_reset_form.html b/templates/registration/password_reset_form.html index cb2f1d0..a380af3 100644 --- a/templates/registration/password_reset_form.html +++ b/templates/registration/password_reset_form.html @@ -6,6 +6,7 @@ {{ form.as_p }} + {% csrf_token %} {% endblock %} diff --git a/urls.py b/urls.py index a97d6d0..aa4f8c5 100644 --- a/urls.py +++ b/urls.py @@ -14,7 +14,7 @@ admin.autodiscover() urlpatterns = patterns('', url(r'^layerindex/', include('layerindex.urls')), url(r'^admin/', include(admin.site.urls)), - url(r'^accounts/', include('registration.urls')), + url(r'^accounts/', include('registration.backends.default.urls')), url(r'^captcha/', include('captcha.urls')), url(r'.*', redirect_to, {'url' : '/layerindex/'}) )