{{.locale.Tr "settings.twofa"}}

{{.locale.Tr "settings.twofa_desc"}}

{{if .TOTPEnrolled}}

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

{{.CsrfTokenHtml}}

{{.locale.Tr "settings.regenerate_scratch_token_desc"}}

{{.CsrfTokenHtml}}

{{.locale.Tr "settings.twofa_disable_note"}}

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

{{.locale.Tr "settings.twofa_not_enrolled"}}

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