Not sure what I've done. I'm done. Please let me free

This commit is contained in:
2025-12-16 01:45:51 +01:00
parent cfebe0a535
commit 64776ea8d0
7 changed files with 55 additions and 12 deletions
+1 -1
View File
@@ -1,7 +1,7 @@
<div id="headerbar">
<div class="headerbar-left">
{% if loggedin %}
<button hx-get="/auth/sessioninfo" hx-target="#main-frame">Username</button>
<!--button hx-get="/auth/sessioninfo" hx-target="#main-frame">Username</button-->
<button onclick="if(confirm('Abmelden?')){location.href = '/auth/logout';}">Abmelden</button>
{% else %}
<button hx-get="/auth/login" hx-target="#main-frame">Anmelden</button>
+13
View File
@@ -0,0 +1,13 @@
<div id="deleteuser-rendertarget">
<h2>Account dauerhaft löschen</h2>
<form hx-post="/user/delete" hx-target="#deleteuser-rendertarget" method="post">
<input type="password" name="pass1" placeholder="Passphrase"><br>
<button type="submit">Account Löschen!</button>
<div>
{% for r in responses %}
{{ r }} <br>
{% endfor %}
</div>
</form>
</div>
+10
View File
@@ -0,0 +1,10 @@
{% extends "baseof.html" %}
{% block content %}
Username: {{ username }} <br>
ID: {{ uid }} <br>
Profil erstellt: {{ created_at | timestamp }} <br>
<div hx-get="/user/delete" hx-trigger="load"></div>
{% endblock %}