comparison 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
comparison
equal deleted inserted replaced
1116:85119508e072 1117:dd57bacde961
39 'extra_context': {'V3_DESIGN': True}, 39 'extra_context': {'V3_DESIGN': True},
40 }, 40 },
41 name='accounts-password_change'), 41 name='accounts-password_change'),
42 url(r'^password/reset/$', 42 url(r'^password/reset/$',
43 auth_views.password_reset, 43 auth_views.password_reset,
44 kwargs={'template_name': 'accounts/password_reset.html', 44 kwargs={
45 'email_template_name': 'accounts/password_reset_email.txt', 45 'template_name': 'accounts/password_reset.html',
46 'post_reset_redirect': '/accounts/password/reset/sent/'}, 46 'email_template_name': 'accounts/password_reset_email.txt',
47 'post_reset_redirect': '/accounts/password/reset/sent/',
48 'extra_context': {'V3_DESIGN': True},
49 },
47 name='accounts-password_reset'), 50 name='accounts-password_reset'),
48 url(r'^password/reset/sent/$', 51 url(r'^password/reset/sent/$',
49 auth_views.password_reset_done, 52 auth_views.password_reset_done,
50 kwargs={'template_name': 'accounts/password_reset_sent.html'}, 53 kwargs={
54 'template_name': 'accounts/password_reset_sent.html',
55 'extra_context': {'V3_DESIGN': True},
56 },
51 name='accounts-password_reset_sent'), 57 name='accounts-password_reset_sent'),
52 url(r'^password/reset/confirm/(?P<uidb64>[0-9A-Za-z_\-]+)/(?P<token>[0-9a-z]+-\w+)/$', 58 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})/$',
53 auth_views.password_reset_confirm, 59 auth_views.password_reset_confirm,
54 kwargs={ 60 kwargs={
55 'template_name': 'accounts/password_reset_confirm.html', 61 'template_name': 'accounts/password_reset_confirm.html',
56 'post_reset_redirect': '/accounts/password/reset/success/', 62 'post_reset_redirect': '/accounts/password/reset/success/',
57 }, 63 'extra_context': {'V3_DESIGN': True},
64 },
58 name='accounts-password_reset_confirm'), 65 name='accounts-password_reset_confirm'),
59 url(r'^password/reset/success/$', 66 url(r'^password/reset/success/$',
60 auth_views.password_reset_complete, 67 auth_views.password_reset_complete,
61 kwargs={'template_name': 'accounts/password_reset_complete.html'}, 68 kwargs={
69 'template_name': 'accounts/password_reset_complete.html',
70 'extra_context': {'V3_DESIGN': True},
71 },
62 name='accounts-password_reset_success'), 72 name='accounts-password_reset_success'),
63 url(r'^username/query/$', 73 url(r'^username/query/$',
64 accounts.views.username_query, 74 accounts.views.username_query,
65 name='accounts-username_query'), 75 name='accounts-username_query'),
66 url(r'^username/sent/$', 76 url(r'^username/sent/$',