oficina / slides Public

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

Plain git — no account needed to clone.

Download

Download this file

1{{/* remote_pair — GET /r/{code}, pairing a phone by hand.
2
3 The QR is the shortcut, never the only route: it carries the code
4 and the key together, and this page is what somebody gets when
5 they type the address instead of scanning, or when the key they
6 pasted does not match.
7
8 A GET form on purpose. Pairing changes nothing on the server — it
9 resolves a code and a key to a URL — so the answer is a redirect
10 to the remote, and a person who bookmarks that has bookmarked
11 their remote rather than a form submission they cannot repeat. */}}
12{{define "content"}}
13{{template "page-header" dict "Title" .Title "Sub" .Body}}
14<div rst-box>
15 <form rst-form method="get" action="{{.Action}}">
16 {{template "field-text" dict
17 "Name" "code" "Label" .CodeLabel "Value" .Code
18 "Hint" .CodeHint "Required" true "Primary" true}}
19 {{template "field-text" dict
20 "Name" "t" "Label" .TokenLabel "Hint" .TokenHint
21 "Required" true "Error" .Error}}
22 {{template "form-foot" dict "Submit" .Submit}}
23 </form>
24</div>
25{{end}}
26