feat: Add basic user handling

This commit is contained in:
2024-04-07 10:00:17 +02:00
parent 9af46290fa
commit e3ee4a2d32
18 changed files with 170 additions and 1 deletions

View File

@@ -0,0 +1,15 @@
{% extends "fellchensammlung/base_generic.html" %}
{% load i18n %}
{% block content %}
{% if not user.is_authenticated %}
<form method="post" action=".">
{% csrf_token %}
{{ form.as_p }}
<input type="submit" value="{% translate 'Submit' %}" />
</form>
{% else %}
<p>{% translate "You're already logged in." %}</p>
{% endif %}
{% endblock %}