2023-09-19 12:11:06 +02:00

17 lines
486 B
HTML

{% extends 'base.html' %}
{% block title %} login {% endblock %}
{% block content %}
{% if not user.is_authenticated %}
<h2>log in</h2>
<form method="post">
{% csrf_token %}
{{ form.username.label_tag }} {{ form.username }}
{{ form.password.label_tag }} {{ form.password }}
<button type="submit">log in</button>
</form>
{% else %}
<div>you're already log in !</div>
{% endif %}
{% endblock %}