Add working authorization and registration

This commit is contained in:
VladislavOstapov committed 2022-09-17 00:05:08 +03:00
1 parent 7582330b1b
commit 59ec0647dc
7 files changed
+43 -19

No files matched your search

+9
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>