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 %>