51 lines
1.2 KiB
HTML
51 lines
1.2 KiB
HTML
{{ template "base-2024.html" . }}
|
|
|
|
{{ define "content" }}
|
|
<div class="flex ph3 justify-center">
|
|
<div class="w-100 w-auto-ns pv3">
|
|
<h1 class="mb2">Sign up</h1>
|
|
<form method="POST" class="flex flex-column g2 hmn-form">
|
|
{{/* NOTE(asaf): No CSRF on register. We don't have a user session yet and I don't think we would gain anything from a pre-login session here */}}
|
|
|
|
<input type="hidden" name="destination" value="{{ .DestinationURL }}" />
|
|
|
|
<input class="db w-100 w5-ns"
|
|
name="username"
|
|
type="text"
|
|
minlength="3" maxlength="30"
|
|
pattern="^[0-9a-zA-Z][\w-]{2,29}$"
|
|
placeholder="Username"
|
|
required
|
|
/>
|
|
|
|
<input class="db w-100 w5-ns"
|
|
name="displayname"
|
|
placeholder="Display name (optional)"
|
|
type="text"
|
|
/>
|
|
|
|
<input class="db w-100 w5-ns"
|
|
name="email"
|
|
type="email"
|
|
placeholder="Email"
|
|
required
|
|
/>
|
|
|
|
<input class="db w-100 w5-ns"
|
|
name="password"
|
|
type="password"
|
|
minlength="8"
|
|
placeholder="Password"
|
|
required
|
|
/>
|
|
|
|
{{/* TODO(asaf): Consider adding some bot-mitigation thing here */}}
|
|
|
|
<div class="mt3">
|
|
<input class="w-100 btn-primary" type="submit" value="Register" />
|
|
</div>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
{{ end }}
|