{{ define "content" }}

{{ .locale.Tr "settings" }}

{{ .locale.Tr "settings.header.authentication" }}

{{ if not .disableForm }}

{{ if .hasPassword }}{{ .locale.Tr "settings.change-password" }}{{ else }}{{ .locale.Tr "settings.create-password" }}{{ end }}

{{ if .hasPassword }}{{ .locale.Tr "settings.change-password-help" }}{{ else }}{{ .locale.Tr "settings.create-password-help" }}{{ end }}

{{ .csrfHtml }}
{{ end }}

{{ .locale.Tr "auth.totp" }} {{ if .hasTotp }}{{ .locale.Tr "auth.totp.already-enabled" }}{{ end }}

{{ .locale.Tr "auth.totp.help" }}

{{ if .hasTotp }}
{{ .csrfHtml }}
{{ .csrfHtml }}
{{ else }} {{ .locale.Tr "auth.totp.use" }} {{ end }}

{{ .locale.Tr "auth.mfa.passkeys" }}

{{ .locale.Tr "auth.mfa.passkeys-help" }}

{{ .csrfHtml }}
{{ if .passkeys }} {{ end }}
{{ if or .githubOauth .gitlabOauth .giteaOauth .oidcOauth }}

{{ .locale.Tr "settings.link-accounts" }}

{{ end }}
{{ end }}