diff options
author | prathamesh | 2017-02-01 13:00:34 +0530 |
---|---|---|
committer | prathamesh | 2017-02-01 13:00:34 +0530 |
commit | 8427da2f08ae590b427027abe36351018c685f8e (patch) | |
tree | f6cf886524d6715f35d27a6221934769eb95f3e8 /yaksh/templates/register | |
parent | a64b9c30f2cd4554734bba16b0aad7647475000d (diff) | |
download | online_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/register')
6 files changed, 0 insertions, 65 deletions
diff --git a/yaksh/templates/register/password_change_done.html b/yaksh/templates/register/password_change_done.html deleted file mode 100644 index 14df20c..0000000 --- a/yaksh/templates/register/password_change_done.html +++ /dev/null @@ -1,15 +0,0 @@ -{% extends "base.html" %} - -{% block pagetitle %}Password change successful{% endblock %} -{% block script %} -<script type="text/javascript"> - window.setTimeout(function() - { - location.href="{{ URL_ROOT }}/exam/" - }, 2000); -</script> -{% endblock %} -{% block content %} -<h3>Your password has been changed successfully.</h3> -<h4>Redirecting ...</h4> -{% endblock %} diff --git a/yaksh/templates/register/password_change_form.html b/yaksh/templates/register/password_change_form.html deleted file mode 100644 index b618410..0000000 --- a/yaksh/templates/register/password_change_form.html +++ /dev/null @@ -1,16 +0,0 @@ -{% 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 %} diff --git a/yaksh/templates/register/password_reset_complete.html b/yaksh/templates/register/password_reset_complete.html deleted file mode 100644 index 0c1bae2..0000000 --- a/yaksh/templates/register/password_reset_complete.html +++ /dev/null @@ -1,6 +0,0 @@ -{% extends "base.html" %} -{% block pagetitle %}Password reset complete{% endblock %} -{% block content %} -<p>Your password has been reset. </p> -<p><a href="{{ login_url }}">Log in</a></p> -{% endblock %} diff --git a/yaksh/templates/register/password_reset_confirm.html b/yaksh/templates/register/password_reset_confirm.html deleted file mode 100644 index 1b0a1b7..0000000 --- a/yaksh/templates/register/password_reset_confirm.html +++ /dev/null @@ -1,15 +0,0 @@ -{% extends "base.html" %} -{% block pagetitle %}Reset Password{% endblock %} - -{% block content %} - {% if validlink %} - <p>Please enter your new password twice so we can verify you typed it in correctly</p>. - <form method="post"> - {% csrf_token %} - {{ form.as_p }} - <button class= "btn" type="submit">Submit</button> - </form> - {% else %} - <p>This reset link is no longer valid!</p> - {% endif %} -{% endblock %} diff --git a/yaksh/templates/register/password_reset_done.html b/yaksh/templates/register/password_reset_done.html deleted file mode 100644 index 1ac7b60..0000000 --- a/yaksh/templates/register/password_reset_done.html +++ /dev/null @@ -1,3 +0,0 @@ -{% extends "base.html" %} -{% block title %}Password reset successful{% endblock %} -{% block pagetitle %} Instruction for setting new password has been mailed to your registered email address {% endblock %} diff --git a/yaksh/templates/register/password_reset_form.html b/yaksh/templates/register/password_reset_form.html deleted file mode 100644 index 0444584..0000000 --- a/yaksh/templates/register/password_reset_form.html +++ /dev/null @@ -1,10 +0,0 @@ -{% extends "base.html" %} -{% block pagetitle %} Email will be send to the registered email address {% endblock %} -{% block content %} -<form action="" method="post"> - {% csrf_token %} - {{ form }} - <button class="btn" type="submit">Request</button> - <a class="btn" href="{{URL_ROOT}}/exam/login/">Cancel</a> -</form> -{% endblock content %} |