Files
plumber/templates/register.html
T
codegirl007 418ef93da5 Add polished answer notifications (#1)
Sends a branded Resend email when a question receives its first answer, records accepted and failed sends, and adds collapsed answer editing with cancel behavior.

Co-authored-by: codegirl-007 <s.raide@gmail.com>
2026-08-27 06:55:24 +00:00

27 lines
1.6 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
{{define "register"}}
{{template "header" .}}
<main id="main" class="wrap auth-wrap">
<p class="eyebrow">New account</p>
<h1>Create an account</h1>
{{if .Error}}<p class="banner error" role="alert">{{.Error}}</p>{{end}}
<form class="ask" method="post" action="/register">
<input type="hidden" name="_csrf" value="{{.CSRF}}">
<label for="username">Username</label>
<input id="username" name="username" type="text" required minlength="3" maxlength="20" pattern="[A-Za-z0-9_]+" autocomplete="username" autocapitalize="off" spellcheck="false" value="{{.Username}}">
<p class="hint">320 letters, numbers, or underscores.</p>
<label for="email">Email</label>
<input id="email" name="email" type="email" required maxlength="254" autocomplete="email" value="{{.Email}}">
<p class="hint">Well email you when a plumber answers your question.</p>
<label for="password">Password</label>
<input id="password" name="password" type="password" required minlength="8" maxlength="72" autocomplete="new-password">
<p class="hint">At least 8 characters (max 72 bytes).</p>
<label for="setup_secret">Setup secret <span class="hint">(optional, first install only)</span></label>
<input id="setup_secret" name="setup_secret" type="password" autocomplete="off">
<p class="hint">Only needed once to create the first admin. Leave blank otherwise.</p>
<button type="submit" class="btn btn-primary">Create account</button>
</form>
<p class="switch">Already have an account? <a href="/login">Sign in</a></p>
</main>
{{template "footer" .}}
{{end}}