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:
10
InvenTree/templates/registration/login.html
Normal file
10
InvenTree/templates/registration/login.html
Normal 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 %}
|
7
InvenTree/templates/registration/logout.html
Normal file
7
InvenTree/templates/registration/logout.html
Normal 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 %}
|
Reference in New Issue
Block a user