oficina / docs Public

Clone
git clone https://amadan.net/oficina/docs

Plain git — no account needed to clone.

Download

Download this file

1{{/* signin — GET /signin (auth.go's signin handler): estilo's sign-in
2 form, the check-your-email state that replaces it, the Keymail
3 continuation (auth_navigation.go), which needs its meta refresh, or
4 the confirm step an emailed link opens (GET /auth/verify,
5 auth_navigation.go's confirmSignin): one Sign in button that POSTs
6 the token back, because a GET must spend nothing.
7
8 rastrillo/auth's own handlers never render this page themselves
9 (magic-links.md: "the sign-in page stays yours"). Begin, Callback and
10 Verify report outcomes by redirecting back here with ?sent=1 or
11 ?err=…, which auth.go resolves into the data below; the confirm step
12 and a refusal call back into it (Config.RenderConfirm, Config.Refused).
13
14 The bar shows the brand only: no account, no Sign in (chrome.go's
15 signinPage). It used to be hidden outright, because the rastrillo
16 shell could not be emptied, and the front door had no name on it. */}}
17{{define "content"}}
18{{- if .ContinueURL}}
19<meta http-equiv="refresh" content="0;url={{.ContinueURL}}">
20{{template "estilo-door-open" .Door}}<p><a rst-btn="primary" href="{{.ContinueURL}}">{{.SubmitLabel}}</a></p>{{template "estilo-door-close"}}
21{{- else if .Confirm}}{{template "estilo-door-open" .Door}}
22 <h1>{{.Confirm.Heading}}</h1>
23 <form rst-form method="post" action="{{.Confirm.Action}}">
24 <input type="hidden" name="token" value="{{.Confirm.Token}}">
25 <div rst-form-foot><button rst-btn="primary" type="submit" autofocus>{{.Confirm.Submit}}</button></div>
26 </form>
27{{template "estilo-door-close"}}
28{{- else if .Sent}}{{template "estilo-signin-sent" .Sent}}
29{{- else}}{{template "estilo-signin" .Form}}{{end}}
30{{end}}
31