-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
馃拕 [#26] Added templates for the authentication
- Loading branch information
1 parent
542ea73
commit f3cbaa2
Showing
4 changed files
with
48 additions
and
3 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 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,19 @@ | ||
{% extends "master.html" %} | ||
|
||
{% block content %} | ||
|
||
{% if form.errors %} | ||
<p>There was an error with the submitted form. Please correct the errors and try again.</p> | ||
{% endif %} | ||
|
||
<h2>Password Reset</h2> | ||
|
||
<form method="post" action="{% url 'password_reset' %}"> | ||
{% csrf_token %} | ||
{{ form.as_p }} | ||
<button type="submit">Reset Password</button> | ||
</form> | ||
|
||
<p>Remembered your password? <a href="{% url 'login' %}">Log in</a></p> | ||
|
||
{% endblock %} |
15 changes: 15 additions & 0 deletions
15
src/bobvance/templates/registration/password_reset_confirmation.html
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 "master.html" %} | ||
|
||
{% block content %} | ||
|
||
{% if valid %} | ||
<h2>Password Reset Successful</h2> | ||
<p>Your password has been successfully reset.</p> | ||
<p><a href="{% url 'login' %}">Log in</a></p> | ||
{% else %} | ||
<h2>Password Reset Failed</h2> | ||
<p>The password reset link is no longer valid. Please request a new one.</p> | ||
<p><a href="{% url 'password_reset' %}">Request a new password reset</a></p> | ||
{% endif %} | ||
|
||
{% endblock %} |
11 changes: 11 additions & 0 deletions
11
src/bobvance/templates/registration/password_reset_done.html
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,11 @@ | ||
{% extends "master.html" %} | ||
|
||
{% block content %} | ||
|
||
<h2>Password Reset Email Sent</h2> | ||
<p>We've sent you an email with instructions on how to reset your password. | ||
If you don't receive an email within a few minutes, check your spam folder.</p> | ||
|
||
<p><a href="{% url 'login' %}">Return to login page</a></p> | ||
|
||
{% endblock %} |