about summary refs log tree commit diff
path: root/app/views/auth
diff options
context:
space:
mode:
authorClaire <claire.github-309c@sitedethib.com>2023-03-18 11:21:03 +0100
committerClaire <claire.github-309c@sitedethib.com>2023-03-18 11:21:03 +0100
commit3091a184ca7ca0f788b42209db95b5d80db31b32 (patch)
treec5a94d591b8713b77b8d23b8ba5124f650f99800 /app/views/auth
parent00fe0f6cb4a736bbb5e633c567ddf7ac9a09ce69 (diff)
parent34096bc6ea788fece267116ef190e0d218f77b18 (diff)
Merge branch 'main' into glitch-soc/merge-upstream
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')