{{.CsrfTokenHtml}}

{{ctx.Locale.Tr "auth.reset_password"}}

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

{{ctx.Locale.Tr "twofa"}}

{{ctx.Locale.Tr "settings.twofa_is_enrolled"}}
{{if .scratch_code}}
{{else}}
{{end}} {{end}}
{{if and .has_two_factor (not .scratch_code)}} {{ctx.Locale.Tr "auth.use_scratch_code"}} {{end}}
{{else}}

{{ctx.Locale.Tr "auth.invalid_code_forgot_password" (printf "%s/user/forgot_password" AppSubUrl)}}

{{end}}