{{template "base/head" .}}
{{.CsrfTokenHtml}}

{{.i18n.Tr "auth.reset_password"}}

{{template "base/alert" .}} {{if .user_email }}
{{end}} {{if .IsResetForm}}
{{if not .user_signed_in}}
{{end}} {{if .has_two_factor}}

{{.i18n.Tr "twofa"}}

{{.i18n.Tr "settings.twofa_is_enrolled" | Str2html }}
{{if .scratch_code}}
{{else}}
{{end}} {{end}}
{{if and .has_two_factor (not .scratch_code)}} {{.i18n.Tr "auth.use_scratch_code" | Str2html}} {{end}}
{{else}}

{{.i18n.Tr "auth.invalid_code"}}

{{end}}
{{template "base/footer" .}}