{{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 and .OrderedOAuth2Names .OAuth2Providers}}
{{range $key := .OrderedOAuth2Names}} {{$provider := index $.OAuth2Providers $key}} {{$provider.DisplayName}}{{if eq $provider.Name {{end}}

Please log in with one of these identity providers.

(apologies for limiting your choice of identity provider; it's a compromise for the time being. When will OpenID, WebID, BrowserID or whatever vendor-neutral solution finally be adopted widely?)

{{end}}
Staff entrance
{{if not .LinkAccountMode}}
{{end}}
{{.i18n.Tr "auth.forgot_password"}}
{{if .ShowRegistrationButton}} {{end}}