155b721438
test / test (push) Has been cancelled
Lay out view, auth, validate, and handlers under internal/web while keeping the cmd/panel API unchanged; update roadmap and changelog for web-split closure. Co-authored-by: Cursor <cursoragent@cursor.com>
25 lines
972 B
HTML
25 lines
972 B
HTML
{{define "content"}}
|
|
{{/* The full mark, on the two pages that carry no navigation: with no bar above
|
|
it, this is the only thing telling an administrator which service just asked
|
|
them for a password. */}}
|
|
<img class="mark" src="/static/logo.svg" width="330" height="150" alt="SelfPost">
|
|
<h1>Sign in</h1>
|
|
<div class="card narrow">
|
|
{{if .SetupHint}}
|
|
<p class="muted">No administrator has been created yet. Open the one-time
|
|
setup link printed in the container log to get started.</p>
|
|
{{else}}
|
|
{{if .Error}}<p class="error">{{.Error}}</p>{{end}}
|
|
<form method="post" action="/login">
|
|
<label for="username">Username</label>
|
|
<input id="username" name="username" autocomplete="username" autofocus required>
|
|
|
|
<label for="password">Password</label>
|
|
<input id="password" name="password" type="password" autocomplete="current-password" required>
|
|
|
|
<button type="submit">Sign in</button>
|
|
</form>
|
|
{{end}}
|
|
</div>
|
|
{{end}}
|