accounts authorization app

This commit is contained in:
2021-10-25 18:48:05 +03:00
parent d518d1f8da
commit 3f14070560
19 changed files with 568 additions and 0 deletions

View File

@@ -0,0 +1,17 @@
{% extends "base.html" %}
{% block content %}
Hello {{ user.username|default:'guest' }}!
<div>
{% if user.is_authenticated %}
<a href="{% url 'accounts:logout' %}">Logout</a>
<a href="{% url 'accounts:password_change' %}">Change Password</a>
<a href="{% url 'accounts:portfolio' %}">Go to Profile page</a>
{% else %}
<a href="{% url 'accounts:login' %}">Login</a>
{% endif %}
</div>
{% endblock %}