Link to the Identity provider's account settings from the account settings (#24100)

Co-authored-by: Claire <claire.github-309c@sitedethib.com>
This commit is contained in:
CSDUMMI
2023-03-17 10:09:01 +01:00
committed by GitHub
parent be9a4912d8
commit d75a1e5054
3 changed files with 14 additions and 1 deletions

View File

@ -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')