about summary refs log tree commit diff
path: root/app/views/auth
diff options
context:
space:
mode:
authorCSDUMMI <31551856+CSDUMMI@users.noreply.github.com>2023-03-17 10:09:01 +0100
committerGitHub <noreply@github.com>2023-03-17 10:09:01 +0100
commitd75a1e5054bc51d00b2ded834887f0cac23537b4 (patch)
tree8a8dc62ff72a805519517ae3a9067d9c92283805 /app/views/auth
parentbe9a4912d8e61123dfe77c921a58cc5e8e22ae6d (diff)
Link to the Identity provider's account settings from the account settings (#24100)
Co-authored-by: Claire <claire.github-309c@sitedethib.com>
Diffstat (limited to 'app/views/auth')
-rw-r--r--app/views/auth/registrations/edit.html.haml4
1 files changed, 3 insertions, 1 deletions
diff --git a/app/views/auth/registrations/edit.html.haml b/app/views/auth/registrations/edit.html.haml
index 60fd1635e..27d3f331e 100644
--- a/app/views/auth/registrations/edit.html.haml
+++ b/app/views/auth/registrations/edit.html.haml
@@ -8,7 +8,7 @@
 = simple_form_for(resource, as: resource_name, url: registration_path(resource_name), html: { method: :put, class: 'auth_edit', novalidate: false }) do |f|
   = render 'shared/error_messages', object: resource
 
-  - if !use_seamless_external_login? || resource.encrypted_password.present?
+  - if (!use_seamless_external_login? || resource.encrypted_password.present?) && !omniauth_only?
     .fields-row
       .fields-row__column.fields-group.fields-row__column-6
         = f.input :email, wrapper: :with_label, input_html: { 'aria-label': t('simple_form.labels.defaults.email') }, required: true, disabled: current_account.suspended?
@@ -23,6 +23,8 @@
 
     .actions
       = f.button :button, t('generic.save_changes'), type: :submit, class: 'button', disabled: current_account.suspended?
+  - elsif omniauth_only? && sso_account_settings.present?
+    = link_to t('users.go_to_sso_account_settings'), sso_account_settings
   - else
     %p.hint= t('users.seamless_external_login')