Remove SSO buttons on forgotten password screen [SCI-9049] (#6076)

This commit is contained in:
ajugo 2023-08-24 16:44:04 +02:00 committed by GitHub
parent 56e411f35e
commit 5ea31337b7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -27,23 +27,25 @@
<div data-hook="omniauth-sign-in-links"></div>
<% end -%>
<%- if sso_enabled? && okta_configured? %>
<div class="okta-sign-in-actions">
<%= form_tag user_okta_omniauth_authorize_path, method: :post, id: 'oktaForm' do %>
<%= submit_tag t('devise.okta.sign_in_label'), class: 'btn btn-okta' %>
<% end %>
</div>
<% end %>
<% if controller_name != 'passwords'%>
<%- if sso_enabled? && okta_configured? %>
<div class="okta-sign-in-actions">
<%= form_tag user_okta_omniauth_authorize_path, method: :post, id: 'oktaForm' do %>
<%= submit_tag t('devise.okta.sign_in_label'), class: 'btn btn-okta' %>
<% end %>
</div>
<% end %>
<%- unless defined?(linkedin_skip) %>
<%- if Rails.configuration.x.enable_user_registration && Rails.configuration.x.linkedin_signin_enabled && @oauth_authorize != true %>
<%= render partial: "users/shared/linkedin_sign_in_links", locals: { resource_name: resource_name } %>
<%- unless defined?(linkedin_skip) %>
<%- if Rails.configuration.x.enable_user_registration && Rails.configuration.x.linkedin_signin_enabled && @oauth_authorize != true %>
<%= render partial: "users/shared/linkedin_sign_in_links", locals: { resource_name: resource_name } %>
<% end -%>
<% end -%>
<% end -%>
<% if sso_enabled? && azure_ad_configured? %>
<div class="azure-sign-in-actions">
<%= render partial: "users/shared/azure_sign_in_links", locals: { resource_name: resource_name } %>
</div>
<% if sso_enabled? && azure_ad_configured? %>
<div class="azure-sign-in-actions">
<%= render partial: "users/shared/azure_sign_in_links", locals: { resource_name: resource_name } %>
</div>
<% end %>
<% end %>
</div>