Refactored, redesigned Authmethods

This commit is contained in:
2025-12-15 14:28:12 +01:00
parent 2dcc389f4b
commit dc3ce5ca88
59 changed files with 667 additions and 294 deletions
+11
View File
@@ -0,0 +1,11 @@
{% if loggedin %}
<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>
<button hx-get="/auth/newuser" hx-target="#main-frame">Neuen Account erstellen</button>
{% endif %}
<a href="/docs/impressum.html">Impressum</a>
<a href="/docs/datenschutz.html">Datenschutz</a>
<a href="/docs/kontakt.html">Kontakt</a>
+1 -1
View File
@@ -1,5 +1,5 @@
<h2>Einloggen</h2>
<form hx-post="/auth/login" hx-target="#auth-rendertarget" hx-indicator=".loading">
<form action="/auth/login" method="post" >
<input type="text" name="user" placeholder="Nutzername" value="{{ username }}"><br>
<input type="password" name="pass" placeholder="Passphrase"><br>
<label>Automatisch abmelden in:</label>