-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #19 from slavistoev/password-reset
Password reset
- Loading branch information
Showing
12 changed files
with
256 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
{% extends "base.html" %} | ||
{% load crispy_forms_filters %} | ||
{% load crispy_forms_tags %} | ||
|
||
{% block title %}Reset your password{% endblock %} | ||
|
||
{% block content %} | ||
<h1>Reset your password</h1> | ||
<p>Use the form below to reset your password.</p> | ||
<form method="post"> | ||
{{ form|crispy }} | ||
<p><input type="submit" value="Reset" /></p> | ||
{% csrf_token %} | ||
</form> | ||
{% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{% extends "base.html" %} | ||
|
||
{% block title %}Password reset email sent.{% endblock %} | ||
|
||
{% block content %} | ||
<p>Haven't received an email? Resend email for password reset <a href='{% url "users:password_reset" %}'>here.</a></p> | ||
{% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{% autoescape off %} | ||
|
||
|
||
Hi {{user.username}} | ||
|
||
Please use the link below to verify your account. | ||
|
||
|
||
http://{{domain}}{% url 'users:password_reset_confirm' uidb64=uid token=token %} | ||
|
||
|
||
{% endautoescape %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
{% extends "base.html" %} | ||
{% load crispy_forms_filters %} | ||
{% load crispy_forms_tags %} | ||
|
||
{% block title %}Reset password through email.{% endblock %} | ||
|
||
{% block content %} | ||
<h1>Reset your password through email.</h1> | ||
<p>Fill in your email to reset your password.</p> | ||
<form method="post"> | ||
{{ form|crispy}} | ||
<p>Resend email verification <a href='{% url "users:resend_email" %}'>here.</a></p> | ||
<p><input type="submit" value="Reset" /></p> | ||
{% csrf_token %} | ||
</form> | ||
{% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{% extends "base.html" %} | ||
{% block title %}Password reset failed{% endblock %} | ||
|
||
{% block content %} | ||
<p>Resend email for password reset <a href='{% url "users:password_reset" %}'>here.</a></p> | ||
{% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.