{{if .LinkAccountMode}} {{ctx.Locale.Tr "auth.oauth_signup_title"}} {{else}} {{ctx.Locale.Tr "sign_up"}} {{end}}

{{.CsrfTokenHtml}} {{if or (not .LinkAccountMode) (and .LinkAccountMode .LinkAccountModeRegister)}} {{template "base/alert" .}} {{end}} {{if .DisableRegistration}}

{{ctx.Locale.Tr "auth.disable_register_prompt"}}

{{else}}
{{if not .DisablePassword}}
{{end}} {{template "user/auth/captcha" .}}
{{if not .LinkAccountMode}} {{end}} {{end}} {{if and .OrderedOAuth2Names .OAuth2Providers}}
{{ctx.Locale.Tr "sign_in_or"}}
{{range $key := .OrderedOAuth2Names}} {{$provider := index $.OAuth2Providers $key}} {{end}}
{{end}}