From 8427da2f08ae590b427027abe36351018c685f8e Mon Sep 17 00:00:00 2001 From: prathamesh Date: Wed, 1 Feb 2017 13:00:34 +0530 Subject: 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:" 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. --- yaksh/templates/registration/password_reset_confirm.html | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 yaksh/templates/registration/password_reset_confirm.html (limited to 'yaksh/templates/registration/password_reset_confirm.html') diff --git a/yaksh/templates/registration/password_reset_confirm.html b/yaksh/templates/registration/password_reset_confirm.html new file mode 100644 index 0000000..1b0a1b7 --- /dev/null +++ b/yaksh/templates/registration/password_reset_confirm.html @@ -0,0 +1,15 @@ +{% extends "base.html" %} +{% block pagetitle %}Reset Password{% endblock %} + +{% block content %} + {% if validlink %} +

Please enter your new password twice so we can verify you typed it in correctly

. +
+ {% csrf_token %} + {{ form.as_p }} + +
+ {% else %} +

This reset link is no longer valid!

+ {% endif %} +{% endblock %} -- cgit