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

{{if .LinkAccountMode}} {{.i18n.Tr "auth.oauth_signin_title"}} {{else}} {{.i18n.Tr "auth.login_userpass"}} {{end}}

{{.CsrfTokenHtml}}
{{if .AllowPassword}}
{{end}} {{if not .LinkAccountMode}}
{{end}}
{{.i18n.Tr "auth.forgot_password"}}
{{if .ShowRegistrationButton}} {{end}} {{if and .OrderedOAuth2Names .OAuth2Providers}}

{{.i18n.Tr "sign_in_with"}}

{{range $key := .OrderedOAuth2Names}} {{$provider := index $.OAuth2Providers $key}} {{$provider.DisplayName}}{{if eq $provider.Name {{end}}
{{end}}