{{template "user/settings/layout_head" (dict "ctxData" . "pageClass" "user settings account")}}

{{.locale.Tr "settings.password"}}

{{if or (.SignedUser.IsLocal) (.SignedUser.IsOAuth2)}}
{{template "base/disable_form_autofill"}} {{.CsrfTokenHtml}} {{if .SignedUser.IsPasswordSet}}
{{end}}
{{.locale.Tr "auth.forgot_password"}}
{{else}}

{{$.locale.Tr "settings.password_change_disabled"}}

{{end}}

{{.locale.Tr "settings.manage_emails"}}

{{.CsrfTokenHtml}}

{{.locale.Tr "settings.delete_account"}}

{{svg "octicon-alert"}} {{.locale.Tr "settings.delete_prompt" | Str2html}}

{{if .UserDeleteWithComments}}

{{.locale.Tr "settings.delete_with_all_comments" .UserDeleteWithCommentsMaxTime | Str2html}}

{{end}}
{{template "base/disable_form_autofill"}} {{.CsrfTokenHtml}}
{{.locale.Tr "auth.forgot_password"}}
{{template "user/settings/layout_footer" .}}