{{.CsrfTokenHtml}}

{{.locale.Tr "auth.reset_password"}}

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

{{.locale.Tr "twofa"}}

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

{{.locale.Tr "auth.invalid_code"}}

{{end}}