2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-18 13:05:42 +00:00

Login / Logout views

Information found here - https://simpleisbetterthancomplex.com/tutorial/2016/06/27/how-to-use-djangos-built-in-login-system.html
This commit is contained in:
Oliver
2018-05-08 23:00:27 +10:00
parent fdf35bd741
commit 47aa3c8a45
4 changed files with 24 additions and 6 deletions

View File

@ -0,0 +1,10 @@
{% extends "base.html" %}
{% block content %}
<h2>Login</h2>
<form method="post">
{% csrf_token %}
{{ form.as_p }}
<button type="submit">Login</button>
</form>
{% endblock %}

View File

@ -0,0 +1,7 @@
{% extends "base.html" %}
{% block content %}
<h4>Logout</h4>
<p>You have been logged out</p>
<p>Click <a href="{% url 'login' %}">here</a> to log in</p>
{% endblock %}