Refactored, redesigned Authmethods
This commit is contained in:
@@ -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,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>
|
||||
|
||||
Reference in New Issue
Block a user