Files
goyco/internal/templates/forgot_password.gohtml

24 lines
868 B
Plaintext

{{define "content"}}
<section class="auth-card">
<h1>Reset your password</h1>
<p class="auth-card__message">Enter your username or email address and we'll send you a link to reset your password.</p>
<form method="post" action="/forgot-password" novalidate>
<input type="hidden" name="csrf_token" value="{{.CSRFToken}}" />
<label for="username_or_email">Username or email address</label>
<input
type="text"
id="username_or_email"
name="username_or_email"
value="{{index .FormValues "username_or_email"}}"
required
autofocus
placeholder="username or you@example.com"
/>
<button type="submit">Send reset link</button>
<p class="hint"><a href="/login">Back to sign in</a></p>
</form>
</section>
{{end}}