initial 1312 funktioniert ein bisschen

This commit is contained in:
2025-12-13 12:21:44 +01:00
commit 59dd267659
29 changed files with 973 additions and 0 deletions
+17
View File
@@ -0,0 +1,17 @@
<h2>Einloggen</h2>
<form hx-post="/auth/login" hx-target="#auth-rendertarget" hx-indicator=".loading">
<input type="text" name="user" placeholder="Nutzername" value="{{ username }}"><br>
<input type="password" name="pass" placeholder="Passphrase"><br>
<label>Automatisch abmelden in:</label>
<select name="timeout">
<option value="1200">20 Minuten</option>
<option value="3600" selected="selected">1 Stunde</option>
<option value="18000">5 Stunden</option>
<option value="86400">24 Stunden</option>
<option value="31536000">1 Jahr</option>
</select>
<button type="submit">Anmelden</button>
<div>
{{response}}
</div>
</form>
+3
View File
@@ -0,0 +1,3 @@
<h1>Willkommen, {{username}}!</h1>
<button hx-get="/auth/logout" hx-swap="outerHTML">Abmelden...</button>
+15
View File
@@ -0,0 +1,15 @@
<h2>Neuen Account registrieren</h2>
<form hx-post="/auth/newuser" hx-target="#auth-rendertarget" method="post">
<input type="text" name="user" placeholder="Nutzername" value="{{ username }}"><br>
<input type="password" name="pass1" placeholder="Passphrase"><br>
<input type="password" name="pass2" placeholder="Passphrase wiederholen"><br>
<label><input type="checkbox" name="pass2"> Ich bin mit der <a href="">Datenschutzerklärung</a> einverstanden!</label>
<button type="submit">Account registrieren!</button>
<div>
{% for r in responses %}
{{ r }} <br>
{% endfor %}
</div>
</form>
+1
View File
@@ -0,0 +1 @@
<h2>Willkommen im Kontrollverlust!</h2>
+5
View File
@@ -0,0 +1,5 @@
Sessionid: {{ sessionid }} <br>
UID: {{ uid }} <br>
Created: {{ created_at | timestamp }} <br>
Expires: {{ expires | timestamp }} <br>
Description: {{ description }} <br>