Skip to content
Snippets Groups Projects
Commit 4e0b82c1 authored by Dan Braghis's avatar Dan Braghis
Browse files

Use the Django password reset form instead of the Wagtail one

parent 3d427781
No related branches found
No related tags found
No related merge requests found
from django.conf.urls import url from django.conf.urls import url
from django.contrib.auth import views as auth_views from django.contrib.auth import views as auth_views
from django.urls import reverse_lazy from django.urls import reverse_lazy
from wagtail.wagtailadmin.forms import PasswordResetForm
from opentech.apply.users.views import account from opentech.apply.users.views import account
urlpatterns = [ urlpatterns = [
...@@ -36,8 +32,7 @@ urlpatterns = [ ...@@ -36,8 +32,7 @@ urlpatterns = [
url(r'^reset/$', auth_views.PasswordResetView.as_view( url(r'^reset/$', auth_views.PasswordResetView.as_view(
template_name='users/password_reset/form.html', template_name='users/password_reset/form.html',
email_template_name='users/password_reset/email.txt', email_template_name='users/password_reset/email.txt',
success_url=reverse_lazy('users:password_reset_done'), success_url=reverse_lazy('users:password_reset_done')
form_class=PasswordResetForm
)), )),
url( url(
r'^reset/done/$', r'^reset/done/$',
......
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