BrainMinder/assets/templates/pages/forgotten-password.tmpl
2024-08-22 10:13:16 +02:00

22 lines
759 B
Cheetah

{{define "page:title"}}Forgotten password{{end}}
{{define "page:main"}}
<h2>Forgotten password</h2>
<p>Enter your email address below and we'll send you instructions for setting a new password.</p>
<form method="POST" action="/forgotten-password" >
<input type='hidden' name='csrf_token' value='{{.CSRFToken}}'>
{{if .Form.Validator.HasErrors}}
<div class="error">Something was wrong. Please correct the errors below and try again.</div>
{{end}}
<div>
<label>Email:</label>
{{with .Form.Validator.FieldErrors.Email}}
<span class='error'>{{.}}</span>
{{end}}
<input type="email" name="Email" value="{{.Form.Email}}">
</div>
<button>Send me instructions</button>
</form>
{{end}}