summaryrefslogtreecommitdiff
path: root/yaksh/templates/registration/password_change_form.html
diff options
context:
space:
mode:
authorprathamesh2017-02-01 13:00:34 +0530
committerprathamesh2017-02-01 13:00:34 +0530
commit8427da2f08ae590b427027abe36351018c685f8e (patch)
treef6cf886524d6715f35d27a6221934769eb95f3e8 /yaksh/templates/registration/password_change_form.html
parenta64b9c30f2cd4554734bba16b0aad7647475000d (diff)
downloadonline_test-8427da2f08ae590b427027abe36351018c685f8e.tar.gz
online_test-8427da2f08ae590b427027abe36351018c685f8e.tar.bz2
online_test-8427da2f08ae590b427027abe36351018c685f8e.zip
Forgot Password and Reset Issue Resolved
The problem was: We have included yaksh urls to the project urls with the namespace "yaksh". So whenever we call the url name i.e "yaksh:<url>" a reverse match is made. But for Forgot Password and Change Password we are using django's in-built functionality, where the reverse url is hardcoded. So the reverse match fails as the namespace is not specified! To resolve this, created a urls_password_reset URL dispatcher file and included to the project urls.
Diffstat (limited to 'yaksh/templates/registration/password_change_form.html')
-rw-r--r--yaksh/templates/registration/password_change_form.html16
1 files changed, 16 insertions, 0 deletions
diff --git a/yaksh/templates/registration/password_change_form.html b/yaksh/templates/registration/password_change_form.html
new file mode 100644
index 0000000..b618410
--- /dev/null
+++ b/yaksh/templates/registration/password_change_form.html
@@ -0,0 +1,16 @@
+{% extends "base.html" %}
+<!DOCTYPE html>
+{% block pagetitle %} Change Password {% endblock %}
+
+{% block content %}
+<form action="" method="post" >
+ {% csrf_token %}
+ <center>
+ <table class=span1>
+ {{ form }}
+ </table>
+ </center>
+ <center><button class="btn" type="submit">Change Password</button>
+ <button class="btn" type="button" name="button" onClick='location.replace("{{URL_ROOT}}/exam/");'>Cancel</button></center>
+</form>
+{% endblock content %}