{{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" .}}