{{yield (hash reset=(action dispatch "RESET") focus=(action 'focus') )}} {{!TODO: Call this reset or similar }}
{{#if error.status}}

{{#if value.Name}} {{#if (eq error.status '403')}} Consul login failed
We received a token from your OIDC provider but could not log in to Consul with it. {{else if (eq error.status '401')}} Could not log in to provider
The OIDC provider has rejected this access token. Please have an administrator check your auth method configuration. {{else if (eq error.status '499')}} SSO log in window closed
The OIDC provider window was closed. Please try again. {{else}} Error
{{error.detail}} {{/if}} {{else}} {{#if (eq error.status '403')}} Invalid token
The token entered does not exist. Please enter a valid token to log in. {{else}} Error
{{error.detail}} {{/if}} {{/if}}

{{/if}}
Contact your administrator for login credentials.
{{#if (env 'CONSUL_SSO_ENABLED')}} {{!-- This `or` can be completely removed post 1.10 as 1.10 has optional params with default values --}} {{#if (gt providers.length 0)}}

or

{{/if}} {{/if}}