{{template "base/head" .}}
{{template "user/settings/navbar" .}}
{{template "base/alert" .}}

{{.i18n.Tr "settings.two_factor"}}

{{.i18n.Tr "settings.two_factor_status"}} {{if .TwoFactor}} {{.i18n.Tr "settings.two_factor_on"}} {{else}} {{.i18n.Tr "settings.two_factor_off"}} {{.i18n.Tr "settings.two_factor_enable"}} {{end}}

{{if .TwoFactor}}

{{.i18n.Tr "settings.two_factor_view_recovery_codes" AppSubUrl "/user/settings/security/two_factor_recovery_codes" | Safe}}

{{.i18n.Tr "settings.two_factor_http" AppSubUrl "/user/settings/applications" "https://{token}@try.gogs.io/user/repo.git" | Safe}}

{{end}}
{{template "base/footer" .}}