diff options
author | prathamesh | 2016-03-09 00:02:39 +0530 |
---|---|---|
committer | prathamesh | 2016-03-09 15:27:03 +0530 |
commit | edf173722f9d14dd32cd8dba381ede5973b52a70 (patch) | |
tree | df19f9ffcac549c1986728cd822fd4fe1bfea22a /yaksh/templates/registration/password_reset_form.html | |
parent | 4874eb1e66c12269fa75849048afd2c9f129d5e3 (diff) | |
download | online_test-edf173722f9d14dd32cd8dba381ede5973b52a70.tar.gz online_test-edf173722f9d14dd32cd8dba381ede5973b52a70.tar.bz2 online_test-edf173722f9d14dd32cd8dba381ede5973b52a70.zip |
Forgot Password facility
Used django in-built views.
Templates overridden.
User enters email address and submits.
The user receives an email with password reset link(one time link).
The link contains a token generate using the current state of the user
like user password.
The link is verified each time when it is been requested.
So the link will be invalid if the user has already changed the password
using the link.(since the token is generated using current state of the
user.)
User resets his password via the link.
Diffstat (limited to 'yaksh/templates/registration/password_reset_form.html')
-rw-r--r-- | yaksh/templates/registration/password_reset_form.html | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/yaksh/templates/registration/password_reset_form.html b/yaksh/templates/registration/password_reset_form.html new file mode 100644 index 0000000..0dbaf09 --- /dev/null +++ b/yaksh/templates/registration/password_reset_form.html @@ -0,0 +1,12 @@ +{% extends "base.html" %} +{% block title %} Forgot Password {% endblock %} +{% block pagetitle %} Online Test {% endblock %} +{% block formtitle %} 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 %} |