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 | |
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')
-rw-r--r-- | yaksh/templates/registration/password_change_done.html (renamed from yaksh/templates/register/password_change_done.html) | 0 | ||||
-rw-r--r-- | yaksh/templates/registration/password_change_form.html (renamed from yaksh/templates/register/password_change_form.html) | 0 | ||||
-rw-r--r-- | yaksh/templates/registration/password_reset_complete.html (renamed from yaksh/templates/register/password_reset_complete.html) | 0 | ||||
-rw-r--r-- | yaksh/templates/registration/password_reset_confirm.html (renamed from yaksh/templates/register/password_reset_confirm.html) | 0 | ||||
-rw-r--r-- | yaksh/templates/registration/password_reset_done.html (renamed from yaksh/templates/register/password_reset_done.html) | 0 | ||||
-rw-r--r-- | yaksh/templates/registration/password_reset_form.html (renamed from yaksh/templates/register/password_reset_form.html) | 0 | ||||
-rw-r--r-- | yaksh/templates/user.html | 2 | ||||
-rw-r--r-- | yaksh/templates/yaksh/login.html | 2 |
8 files changed, 2 insertions, 2 deletions
diff --git a/yaksh/templates/register/password_change_done.html b/yaksh/templates/registration/password_change_done.html index 14df20c..14df20c 100644 --- a/yaksh/templates/register/password_change_done.html +++ b/yaksh/templates/registration/password_change_done.html diff --git a/yaksh/templates/register/password_change_form.html b/yaksh/templates/registration/password_change_form.html index b618410..b618410 100644 --- a/yaksh/templates/register/password_change_form.html +++ b/yaksh/templates/registration/password_change_form.html diff --git a/yaksh/templates/register/password_reset_complete.html b/yaksh/templates/registration/password_reset_complete.html index 0c1bae2..0c1bae2 100644 --- a/yaksh/templates/register/password_reset_complete.html +++ b/yaksh/templates/registration/password_reset_complete.html diff --git a/yaksh/templates/register/password_reset_confirm.html b/yaksh/templates/registration/password_reset_confirm.html index 1b0a1b7..1b0a1b7 100644 --- a/yaksh/templates/register/password_reset_confirm.html +++ b/yaksh/templates/registration/password_reset_confirm.html diff --git a/yaksh/templates/register/password_reset_done.html b/yaksh/templates/registration/password_reset_done.html index 1ac7b60..1ac7b60 100644 --- a/yaksh/templates/register/password_reset_done.html +++ b/yaksh/templates/registration/password_reset_done.html diff --git a/yaksh/templates/register/password_reset_form.html b/yaksh/templates/registration/password_reset_form.html index 0444584..0444584 100644 --- a/yaksh/templates/register/password_reset_form.html +++ b/yaksh/templates/registration/password_reset_form.html diff --git a/yaksh/templates/user.html b/yaksh/templates/user.html index 6f2137d..6f879fe 100644 --- a/yaksh/templates/user.html +++ b/yaksh/templates/user.html @@ -29,7 +29,7 @@ <li><a href="{{ URL_ROOT }}/exam/quizzes"> Home </a></li> <li><a href="{{ URL_ROOT }}/exam/quizzes/enrolled/"> Enrolled Courses </a></li> <li><a href="{{ URL_ROOT }}/exam/viewprofile"> Profile </a></li> - <li><a href="{{ URL_ROOT }}/exam/changepassword"> Change Password </a></li> + <li><a href="{{ URL_ROOT }}/exam/reset/changepassword"> Change Password </a></li> </ul> </div> <div class="col-sm-8 col-sm-offset-3 col-md-9 col-md-offset-2 main"> diff --git a/yaksh/templates/yaksh/login.html b/yaksh/templates/yaksh/login.html index 0a6fdc1..e4b5933 100644 --- a/yaksh/templates/yaksh/login.html +++ b/yaksh/templates/yaksh/login.html @@ -12,7 +12,7 @@ {{ form.as_table }} </table></center> <button class="btn btn-primary" type="submit">Login</button> - <a class="btn btn-primary" href="{{URL_ROOT}}/exam/forgotpassword/">Forgot Password?</a> + <a class="btn btn-primary" href="{{URL_ROOT}}/exam/reset/forgotpassword/">Forgot Password?</a> <a class="btn btn-primary" href="{{URL_ROOT}}/exam/register/">New User? Sign-Up </a> <h3> Login with </h3> <a class="btn btn-social-icon btn-google" href="{% url 'social:begin' 'google-oauth2' %}"> |