This commit is contained in:
Ross
2022-06-09 17:54:33 +01:00
parent 48e4e420c9
commit 8c10e2160a
5 changed files with 55 additions and 1 deletions
+1 -1
View File
@@ -5,7 +5,7 @@
<h1>PENRA Courses</h1>
{% if not request.user.is_authenticated %}
<a href="{% url 'login'%}">Log in</a>
<!-- <a href="{% url 'password_reset'%}">Reset password</a> -->
<a href="{% url 'password_reset'%}">Reset password</a>
{% else %}
<a href="{% url 'atlas:index'%}">Atlas</a>
<a href="{% url 'anatomy:index'%}">Anatomy</a>
@@ -0,0 +1,9 @@
<!-- templates/registration/password_reset_complete.html -->
{% extends 'base.html' %}
{% block title %}Password reset complete{% endblock %}
{% block content %}
<h1>Password reset complete</h1>
<p>Your new password has been set. You can log in now on the <a href="{% url 'login' %}">log in page</a>.</p>
{% endblock %}
@@ -0,0 +1,22 @@
<!-- templates/registration/password_reset_confirm.html -->
{% extends "base.html" %}
{% block title %}Enter new password{% endblock %}
{% block content %}
{% if validlink %}
<h1>Set a new password!</h1>
<form method="POST">
{% csrf_token %}
{{ form.as_p }}
<input type="submit" value="Change my password">
</form>
{% else %}
<p>The password reset link was invalid, possibly because it has already been used. Please request a new password reset.</p>
{% endif %}
{% endblock %}
@@ -0,0 +1,9 @@
<!-- templates/registration/password_reset_done.html -->
{% extends "base.html" %}
{% block title %}Email Sent{% endblock %}
{% block content %}
<h1>Check your inbox.</h1>
<p>We've emailed you instructions for setting your password. You should receive the email shortly!</p>
{% endblock %}
@@ -0,0 +1,14 @@
{% extends 'base.html' %}
{% block title %}Forgot Your Password?{% endblock %}
{% block content %}
<h1>Forgot your password?</h1>
<p>Enter your email address below, and we'll email instructions for setting a new one.</p>
<form method="POST">
{% csrf_token %}
{{ form.as_p }}
<input type="submit" value="Send me instructions!">
</form>
{% endblock %}