added login cookie, added change pwd screen

This commit is contained in:
2026-01-18 08:22:41 +01:00
parent 2d7297e3b7
commit 23631c6d24
10 changed files with 480 additions and 22 deletions
+23 -5
View File
@@ -26,6 +26,15 @@
height: 56px;
}
</style>
<script>
function toggleButtons() {
if ($('#toprightbuttons').hasClass("d-none")){
$('#toprightbuttons').removeClass("d-none")
} else {
$('#toprightbuttons').addClass("d-none")
}
}
</script>
</head>
<body class="bg-light">
@@ -45,13 +54,22 @@
<div class="d-flex align-items-center gap-2">
{% if current_user.is_authenticated %}
<span class="text-muted small d-none d-sm-inline">
{{ current_user.name }}
</span>
<a href="{{ url_for('auth.logout') }}"
>
<div class="text-muted small d-none d-sm-inline">
<a class="btn" onclick="toggleButtons()">{{current_user.name }}</a>
</div>
<div id="toprightbuttons" class="d-none">
<a href="{{ url_for('auth.logout') }}">
<img style="width: 2em; height: 2em" src="/static/logout.svg">
</a>
<a href="{{ url_for('auth.change_pwd') }}">
<img style="width: 2em; height: 2em" src="/static/password.svg">
</a>
</div>
{% else %}
<a href="{{ url_for('auth.login') }}"
>