Change email address input to be disabled for logged-in users when requesting a new confirmation e-mail (#23247)

Fixes #23093
This commit is contained in:
Claire
2023-01-24 20:18:25 +01:00
committed by GitHub
parent 6883fddb19
commit dd58db64d8
2 changed files with 3 additions and 1 deletions

View File

@ -5,7 +5,7 @@
= render 'shared/error_messages', object: resource
.fields-group
= f.input :email, autofocus: true, wrapper: :with_label, label: t('simple_form.labels.defaults.email'), input_html: { 'aria-label': t('simple_form.labels.defaults.email') }, hint: false
= f.input :email, autofocus: true, wrapper: :with_label, label: t('simple_form.labels.defaults.email'), input_html: { 'aria-label': t('simple_form.labels.defaults.email') }, readonly: current_user.present?, hint: current_user.present? && t('auth.confirmations.wrong_email_hint')
.actions
= f.button :button, t('auth.resend_confirmation'), type: :submit