initial 1312 funktioniert ein bisschen
This commit is contained in:
@@ -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>
|
||||
@@ -0,0 +1,3 @@
|
||||
<h1>Willkommen, {{username}}!</h1>
|
||||
|
||||
<button hx-get="/auth/logout" hx-swap="outerHTML">Abmelden...</button>
|
||||
@@ -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>
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
<h2>Willkommen im Kontrollverlust!</h2>
|
||||
@@ -0,0 +1,5 @@
|
||||
Sessionid: {{ sessionid }} <br>
|
||||
UID: {{ uid }} <br>
|
||||
Created: {{ created_at | timestamp }} <br>
|
||||
Expires: {{ expires | timestamp }} <br>
|
||||
Description: {{ description }} <br>
|
||||
Reference in New Issue
Block a user