hmn/src/templates/src/auth_do_password_reset.html

39 lines
933 B
HTML
Raw Normal View History

2021-08-17 05:18:04 +00:00
{{ template "base.html" . }}
{{ define "content" }}
2022-08-13 19:15:00 +00:00
<div class="flex ph3 ph0-ns justify-center">
<div class="w-100 w-auto-ns pv3">
<h1>Hi, {{ .Username }}!</h1>
<form method="post" class="flex flex-column">
2021-08-17 05:18:04 +00:00
<input type="hidden" name="token" value="{{ .Token }}" />
2022-08-13 19:15:00 +00:00
2021-08-17 05:18:04 +00:00
{{/*NOTE: The username field isn't `type="hidden"` because this way browser will offer to save the username along with the password */}}
2022-08-13 19:15:00 +00:00
<input
style="position:absolute; visibility:hidden;"
type="text"
name="username"
value="{{ .Username }}"
readonly
/>
2021-08-17 05:18:04 +00:00
2022-08-13 19:15:00 +00:00
<div>Please enter a new password.</div>
2021-08-17 05:18:04 +00:00
2022-08-13 19:15:00 +00:00
<div class="mt2">
<label class="db b" for="password">New password</label>
<input class="db w-100 w5-ns"
name="password"
type="password"
minlength="8"
required
/>
</div>
2021-08-17 05:18:04 +00:00
2022-08-13 19:15:00 +00:00
<input class="db mt3 w-100"
type="submit"
value="Reset your password"
/>
2021-08-17 05:18:04 +00:00
</form>
</div>
2022-08-13 19:15:00 +00:00
</div>
2021-08-17 05:18:04 +00:00
{{ end }}