Phase 10, part 2: the first owner, from a one-time setup link

A new server prints a link to create its owner (supermarket setup-link
makes another); until it's used, every page says the setup isn't
finished. One-time links (schema 33) are kept as hashes and used up in
one statement; resets and invitations will use them too. The server
edition opens Postgres.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-25 08:53:14 -07:00
co-authored by Claude Opus 5.5
parent 96404a3580
commit 72455438c9
16 changed files with 553 additions and 10 deletions
+12
View File
@@ -14,6 +14,17 @@
<script src="/static/app.js" defer></script>
</head>
<body>
{{if .Bare}}
<div class="bare-shell">
<p class="brand"><img class="logo" src="/static/logo.png" alt="" width="28" height="28">Supermarket</p>
<main class="bare-main">
{{if .Flash}}<p class="flash" role="status">{{.Flash}}</p>{{end}}
{{if .Error}}<p class="error" role="alert">{{.Error}}</p>{{end}}
{{template "content" .}}
</main>
<p class="version">Supermarket {{.Version}}</p>
</div>
{{else}}
<div class="shell">
<aside class="sidebar" id="sidebar">
<a class="brand" href="/"><img class="logo" src="/static/logo.png" alt="" width="28" height="28">Supermarket</a>
@@ -111,6 +122,7 @@
</main>
</div>
</div>
{{end}}
</body>
</html>