Umbau-Projekt (SSR und Rest)

This commit is contained in:
2026-09-03 22:20:55 +02:00
parent 13363cb568
commit c66df283d1
37 changed files with 3719 additions and 344 deletions
+23
View File
@@ -0,0 +1,23 @@
{{define "content"}}
<section id="auth-box">
<form method="post" action="/auth/newuser">
<h2>Registrieren</h2>
<label for="user">Nutzername</label>
<input id="user" name="user" autocomplete="username" required minlength="3" maxlength="32"
{{if .Form}}value="{{.Form.User}}"{{end}}>
{{with fieldErr .Err "user"}}<p class="msg">{{.}}</p>{{end}}
<label for="pass1">Passwort <span class="muted">(mindestens 10 Zeichen)</span></label>
<input id="pass1" name="pass1" type="password" autocomplete="new-password" required minlength="10">
{{with fieldErr .Err "pass1"}}<p class="msg">{{.}}</p>{{end}}
<label for="pass2">Passwort wiederholen</label>
<input id="pass2" name="pass2" type="password" autocomplete="new-password" required minlength="10">
{{with fieldErr .Err "pass2"}}<p class="msg">{{.}}</p>{{end}}
<button type="submit">Konto erstellen</button>
</form>
<p class="muted">Schon registriert? <a href="/auth/login">Zum Login</a></p>
</section>
{{end}}