This commit is contained in:
Ross
2021-09-20 22:27:26 +01:00
parent 4942251019
commit d06e5e8b15
4 changed files with 16 additions and 10 deletions
+10 -8
View File
@@ -3,12 +3,14 @@
{% block title %}Login{% endblock %}
{% block content %}
<h2>Login</h2>
<form method="post">
{% csrf_token %}
{{ form.as_p }}
<button type="submit">Login</button>
</form>
<p><a href="{% url 'password_reset' %}">Reset password</a></p>
<p><a href="{% url 'password_change' %}">Change password</a></p>
<h2>Login</h2>
<form method="post">
{% csrf_token %}
{{ form.as_p }}
<button type="submit">Login</button>
</form>
<!-- <p><a href="{% url 'password_reset' %}">Reset password</a></p> -->
{% if request.user.is_staff %}
<p><a href="{% url 'password_change' %}">Change password</a></p>
{% endif %}
{% endblock %}