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

{{ctx.Locale.Tr "settings.twofa_desc"}}

{{if .TOTPEnrolled}}

{{ctx.Locale.Tr "settings.twofa_is_enrolled" | Str2html}}

{{.CsrfTokenHtml}}

{{ctx.Locale.Tr "settings.regenerate_scratch_token_desc"}}

{{.CsrfTokenHtml}}

{{ctx.Locale.Tr "settings.twofa_disable_note"}}

{{else}}

{{ctx.Locale.Tr "settings.twofa_not_enrolled"}}

{{ctx.Locale.Tr "settings.twofa_enroll"}}
{{end}}