summaryrefslogtreecommitdiff
path: root/yaksh/urls_password_reset.py
diff options
context:
space:
mode:
authorPrabhu Ramachandran2017-02-01 17:19:15 +0530
committerGitHub2017-02-01 17:19:15 +0530
commitadc31775c1ca1481c6898fb8ef13548a14095d19 (patch)
treed182fa8edec776231286b4d4f402fdcf81361ead /yaksh/urls_password_reset.py
parentd400e03973f1eef6847c8b6f88ac14e39485bf00 (diff)
parent8427da2f08ae590b427027abe36351018c685f8e (diff)
downloadonline_test-adc31775c1ca1481c6898fb8ef13548a14095d19.tar.gz
online_test-adc31775c1ca1481c6898fb8ef13548a14095d19.tar.bz2
online_test-adc31775c1ca1481c6898fb8ef13548a14095d19.zip
Merge pull request #198 from prathamesh920/password_reset_issue
Forgot Password and Reset Issue Resolved
Diffstat (limited to 'yaksh/urls_password_reset.py')
-rw-r--r--yaksh/urls_password_reset.py20
1 files changed, 20 insertions, 0 deletions
diff --git a/yaksh/urls_password_reset.py b/yaksh/urls_password_reset.py
new file mode 100644
index 0000000..c1e36c6
--- /dev/null
+++ b/yaksh/urls_password_reset.py
@@ -0,0 +1,20 @@
+from django.conf.urls import patterns, url
+from django.contrib.auth.views import password_reset, password_reset_confirm,\
+ password_reset_done, password_reset_complete, password_change,\
+ password_change_done
+
+urlpatterns = [
+ url(r'^forgotpassword/$', password_reset,
+ name="password_reset"),
+ url(r'^password_reset/(?P<uidb64>[0-9A-Za-z]+)-(?P<token>.+)/$',
+ password_reset_confirm,
+ name='password_reset_confirm'),
+ url(r'^password_reset/mail_sent/$', password_reset_done,
+ name='password_reset_done'),
+ url(r'^password_reset/complete/$', password_reset_complete,
+ name='password_reset_complete'),
+ url(r'^changepassword/$', password_change,
+ name='password_change'),
+ url(r'^password_change/done/$', password_change_done,
+ name='password_change_done'),
+]