@anonymous_csrf for /users/pwreset (bug 652973)

This commit is contained in:
Jeff Balogh 2011-04-26 15:59:49 -07:00
Родитель 485f459e08
Коммит 446c9cf4f1
1 изменённых файлов: 2 добавлений и 1 удалений

Просмотреть файл

@ -2,6 +2,7 @@ from django.contrib.auth import views as auth_views
from django.conf.urls.defaults import patterns, url, include
from zadmin import jinja_for_django
from session_csrf import anonymous_csrf
from . import forms, views
from .models import UserProfile
@ -31,7 +32,7 @@ users_patterns = patterns('',
url('^login', views.login, name='users.login'),
url('^logout', views.logout, name='users.logout'),
url('^register$', views.register, name='users.register'),
url(r'^pwreset/?$', auth_views.password_reset,
url(r'^pwreset/?$', anonymous_csrf(auth_views.password_reset),
{'template_name': 'users/pwreset_request.html',
'email_template_name': 'users/email/pwreset.ltxt',
'password_reset_form': forms.PasswordResetForm,