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

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

{{if .TOTPEnrolled}}

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

{{.CsrfTokenHtml}}

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

{{.CsrfTokenHtml}}

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

{{else}} {{/* The recovery tip is there as a means of encouraging a user to enroll */}}

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

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

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