diff options
Diffstat (limited to 'templates/set-password.html')
| -rw-r--r-- | templates/set-password.html | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/templates/set-password.html b/templates/set-password.html new file mode 100644 index 0000000..6a38413 --- /dev/null +++ b/templates/set-password.html @@ -0,0 +1,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}} |