chore: 🤖 hide auth form if OIDC and OIDC is disabled

This commit is contained in:
Randall Morey committed 2021-04-09 15:41:32 -04:00
1 parent f782d90a7e
commit 53423739d3
2 files changed
+34 -10

No files matched your search

@@ -1,5 +1,17 @@
<Form::Authenticate
@model={{@model}}
@submit={{route-action "authenticate"}}
@disabled={{is-loading}}
/>
{{#if (feature-flag 'oidc')}}
{{! OIDC enabled: show form for any auth method}}
<Form::Authenticate
@model={{@model}}
@submit={{route-action "authenticate"}}
@disabled={{is-loading}}
/>
{{else}}
{{! OIDC disabled: hide OIDC auth form}}
{{#unless @model.isOIDC}}
<Form::Authenticate
@model={{@model}}
@submit={{route-action "authenticate"}}
@disabled={{is-loading}}
/>
{{/unless}}
{{/if}}
@@ -1,5 +1,17 @@
<Form::Authenticate
@model={{@model}}
@submit={{route-action "authenticate"}}
@disabled={{is-loading}}
/>
{{#if (feature-flag 'oidc')}}
{{! OIDC enabled: show form for any auth method}}
<Form::Authenticate
@model={{@model}}
@submit={{route-action "authenticate"}}
@disabled={{is-loading}}
/>
{{else}}
{{! OIDC disabled: hide OIDC auth form}}
{{#unless @model.isOIDC}}
<Form::Authenticate
@model={{@model}}
@submit={{route-action "authenticate"}}
@disabled={{is-loading}}
/>
{{/unless}}
{{/if}}