Initial commit: runnable Ask a Plumber First server.

This commit is contained in:
2026-08-21 23:30:15 -07:00
parent 7bc79af954
commit d167b9216a
38 changed files with 4174 additions and 0 deletions
+19
View File
@@ -0,0 +1,19 @@
{{define "login"}}
{{template "header" .}}
<main id="main" class="wrap auth-wrap">
<p class="eyebrow">Access</p>
<h1>Sign in</h1>
{{if .Error}}<p class="banner error" role="alert">{{.Error}}</p>{{end}}
<form class="ask" method="post" action="/login">
<input type="hidden" name="_csrf" value="{{.CSRF}}">
<input type="hidden" name="next" value="{{.Next}}">
<label for="username">Username</label>
<input id="username" name="username" type="text" required maxlength="20" autocomplete="username" autocapitalize="off" spellcheck="false" value="{{.Username}}">
<label for="password">Password</label>
<input id="password" name="password" type="password" required minlength="8" autocomplete="current-password">
<button type="submit" class="btn btn-primary">Sign in</button>
</form>
<p class="switch">New here? <a href="/register">Create an account</a></p>
</main>
{{template "footer" .}}
{{end}}