blob: 6a3841343309d95692d6ff0c2fd717ea46c772f0 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
{{define "title"}}Set a password - {{.Site}}{{end}}
{{define "main"}}
<h2>Set a password for {{.Data.Name}}</h2>
<p>This link works once, and setting the password is what spends it.</p>
<form method="post" action="/set-password">
<input type="hidden" name="csrf" value="{{.CSRF}}">
<input type="hidden" name="name" value="{{.Data.Name}}">
<input type="hidden" name="expires" value="{{.Data.Expires}}">
<input type="hidden" name="t" value="{{.Data.Token}}">
<p>
<label for="new">Password</label>
<input id="new" name="new" type="password" autocomplete="new-password" required>
</p>
<p>
<label for="again">Password again</label>
<input id="again" name="again" type="password" autocomplete="new-password" required>
</p>
<p><button type="submit">Set the password</button></p>
</form>
{{end}}
|