{{.i18n.Tr "settings.twofa"}}

{{.i18n.Tr "settings.twofa_desc"}}

{{if .TwofaEnrolled}}

{{$.i18n.Tr "settings.twofa_is_enrolled" | Str2html }}

{{.CsrfTokenHtml}}

{{.i18n.Tr "settings.regenerate_scratch_token_desc"}}

{{.CsrfTokenHtml}}

{{.i18n.Tr "settings.twofa_disable_note"}}

{{$.i18n.Tr "settings.twofa_disable"}}
{{else}}

{{.i18n.Tr "settings.twofa_not_enrolled"}}

{{$.i18n.Tr "settings.twofa_enroll"}}
{{end}}