- Module github.com/cdnutter/canon, binary/command cmd/canon, Docker image and compose project "canon" - Environment variables now use the CANON_ prefix - Default site title is "<Your name>'s Canon" (or "Canon" with no name); a Site title set in Settings still overrides it - Existing topdeck.db (and WAL files) is renamed to canon.db on start - README: upgrade notes, including moving the old compose volume Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
30 lines
1.4 KiB
HTML
30 lines
1.4 KiB
HTML
{{define "bodyclass"}}page-auth{{end}}
|
|
{{define "content"}}
|
|
<section class="auth-card">
|
|
<div class="auth-mark">{{icon "deck"}}</div>
|
|
<h1>Welcome to Canon</h1>
|
|
<p class="muted">Create the owner account. Only you can sign in; everyone else just sees your lists.</p>
|
|
{{with .Data.Error}}<p class="alert alert--error" role="alert">{{icon "alert"}}{{.}}</p>{{end}}
|
|
<form method="post" action="/setup" class="stack">
|
|
<label class="field">
|
|
<span class="field-label">Setup code</span>
|
|
<input name="code" required autocomplete="one-time-code" placeholder="XXXX-XXXX" spellcheck="false" autocapitalize="characters">
|
|
<span class="field-hint">Printed in the server log when Canon starts. Run <code>docker compose logs canon</code> to see it.</span>
|
|
</label>
|
|
<label class="field">
|
|
<span class="field-label">Username</span>
|
|
<input name="username" autocomplete="username" required value="{{.Data.Username}}" maxlength="64">
|
|
</label>
|
|
<label class="field">
|
|
<span class="field-label">Password</span>
|
|
<input name="password" type="password" autocomplete="new-password" required minlength="8">
|
|
</label>
|
|
<label class="field">
|
|
<span class="field-label">Confirm password</span>
|
|
<input name="confirm" type="password" autocomplete="new-password" required minlength="8">
|
|
</label>
|
|
<button class="btn btn--primary btn--block" type="submit">Create account</button>
|
|
</form>
|
|
</section>
|
|
{{end}}
|