Add working authorization and registration

This commit is contained in:
2022-09-17 00:05:08 +03:00
parent 7582330b1b
commit 59ec0647dc
7 changed files with 43 additions and 19 deletions

View File

@@ -27,6 +27,15 @@
{% endif %}
</div>
</header>
{% if user.is_authenticated %}
Добро пожаловать, {{ user.name }} {{ user.surname }}<br>
<a href="{% url 'logout'%}?next={{request.path}}">Выход</a>
{% else %}
Вы не вошли
<a href="{% url 'login'%}?next={{request.path}}">Вход</a>
{% endif %}
<nav>
<a href="{% url 'index' %}">На главную</a>
<a href="{% url 'account' %}">Аккаунт</a>