From 5ea31337b7806556d2b122a56d11243612c43b1a Mon Sep 17 00:00:00 2001 From: ajugo Date: Thu, 24 Aug 2023 16:44:04 +0200 Subject: [PATCH] Remove SSO buttons on forgotten password screen [SCI-9049] (#6076) --- app/views/users/shared/_links.html.erb | 32 ++++++++++++++------------ 1 file changed, 17 insertions(+), 15 deletions(-) diff --git a/app/views/users/shared/_links.html.erb b/app/views/users/shared/_links.html.erb index 934f50421..0ed2a0ee0 100644 --- a/app/views/users/shared/_links.html.erb +++ b/app/views/users/shared/_links.html.erb @@ -27,23 +27,25 @@
<% end -%> - <%- if sso_enabled? && okta_configured? %> -
- <%= 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 %> -
- <% end %> + <% if controller_name != 'passwords'%> + <%- if sso_enabled? && okta_configured? %> +
+ <%= 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 %> +
+ <% 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? %> -
- <%= render partial: "users/shared/azure_sign_in_links", locals: { resource_name: resource_name } %> -
+ <% if sso_enabled? && azure_ad_configured? %> +
+ <%= render partial: "users/shared/azure_sign_in_links", locals: { resource_name: resource_name } %> +
+ <% end %> <% end %>