mirror of
https://github.com/Balshgit/different
synced 2025-12-17 15:30:41 +03:00
accounts authorization app
This commit is contained in:
17
django_accounts_app/templates/users/dashboard.html
Normal file
17
django_accounts_app/templates/users/dashboard.html
Normal 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 %}
|
||||
Reference in New Issue
Block a user