Mercurial > public > sg101
diff accounts/urls.py @ 1117:dd57bacde961
Convert password reset to v3 design.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Wed, 20 Jul 2016 20:54:36 -0500 |
parents | 85119508e072 |
children |
line wrap: on
line diff
--- a/accounts/urls.py Tue Jul 19 21:20:44 2016 -0500 +++ b/accounts/urls.py Wed Jul 20 20:54:36 2016 -0500 @@ -41,24 +41,34 @@ name='accounts-password_change'), url(r'^password/reset/$', auth_views.password_reset, - kwargs={'template_name': 'accounts/password_reset.html', - 'email_template_name': 'accounts/password_reset_email.txt', - 'post_reset_redirect': '/accounts/password/reset/sent/'}, + kwargs={ + 'template_name': 'accounts/password_reset.html', + 'email_template_name': 'accounts/password_reset_email.txt', + 'post_reset_redirect': '/accounts/password/reset/sent/', + 'extra_context': {'V3_DESIGN': True}, + }, name='accounts-password_reset'), url(r'^password/reset/sent/$', auth_views.password_reset_done, - kwargs={'template_name': 'accounts/password_reset_sent.html'}, + kwargs={ + 'template_name': 'accounts/password_reset_sent.html', + 'extra_context': {'V3_DESIGN': True}, + }, name='accounts-password_reset_sent'), - url(r'^password/reset/confirm/(?P<uidb64>[0-9A-Za-z_\-]+)/(?P<token>[0-9a-z]+-\w+)/$', + url(r'^password/reset/confirm/(?P<uidb64>[0-9A-Za-z_\-]+)/(?P<token>[0-9A-Za-z]{1,13}-[0-9A-Za-z]{1,20})/$', auth_views.password_reset_confirm, kwargs={ 'template_name': 'accounts/password_reset_confirm.html', 'post_reset_redirect': '/accounts/password/reset/success/', - }, + 'extra_context': {'V3_DESIGN': True}, + }, name='accounts-password_reset_confirm'), url(r'^password/reset/success/$', auth_views.password_reset_complete, - kwargs={'template_name': 'accounts/password_reset_complete.html'}, + kwargs={ + 'template_name': 'accounts/password_reset_complete.html', + 'extra_context': {'V3_DESIGN': True}, + }, name='accounts-password_reset_success'), url(r'^username/query/$', accounts.views.username_query,