2016-10-13 19:03:12 -04:00
|
|
|
- content_for :page_title do
|
Change unconfirmed user login behaviour (#11375)
Allow access to account settings, 2FA, authorized applications, and
account deletions to unconfirmed and pending users, as well as
users who had their accounts disabled. Suspended users cannot update
their e-mail or password or delete their account.
Display account status on account settings page, for example, when
an account is frozen, limited, unconfirmed or pending review.
After sign up, login users straight away and show a simple page that
tells them the status of their account with links to account settings
and logout, to reduce onboarding friction and allow users to correct
wrongly typed e-mail addresses.
Move the final sign-up step of SSO integrations to be the same
as above to reduce code duplication.
2019-07-22 04:48:50 -04:00
|
|
|
= t('settings.account_settings')
|
|
|
|
|
|
|
|
= render 'status'
|
|
|
|
|
|
|
|
%h3= t('auth.security')
|
2016-10-13 19:03:12 -04:00
|
|
|
|
2020-08-12 06:11:15 -04:00
|
|
|
= simple_form_for(resource, as: resource_name, url: registration_path(resource_name), html: { method: :put, class: 'auth_edit', novalidate: false }) do |f|
|
2016-10-18 10:37:15 -04:00
|
|
|
= render 'shared/error_messages', object: resource
|
2016-03-05 16:43:05 -05:00
|
|
|
|
2018-02-28 13:04:53 -05:00
|
|
|
- if !use_seamless_external_login? || resource.encrypted_password.present?
|
Change unconfirmed user login behaviour (#11375)
Allow access to account settings, 2FA, authorized applications, and
account deletions to unconfirmed and pending users, as well as
users who had their accounts disabled. Suspended users cannot update
their e-mail or password or delete their account.
Display account status on account settings page, for example, when
an account is frozen, limited, unconfirmed or pending review.
After sign up, login users straight away and show a simple page that
tells them the status of their account with links to account settings
and logout, to reduce onboarding friction and allow users to correct
wrongly typed e-mail addresses.
Move the final sign-up step of SSO integrations to be the same
as above to reduce code duplication.
2019-07-22 04:48:50 -04:00
|
|
|
.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?
|
|
|
|
.fields-row__column.fields-group.fields-row__column-6
|
2019-09-19 14:58:19 -04:00
|
|
|
= f.input :current_password, wrapper: :with_label, input_html: { 'aria-label' => t('simple_form.labels.defaults.current_password'), :autocomplete => 'off' }, required: true, disabled: current_account.suspended?, hint: false
|
Change unconfirmed user login behaviour (#11375)
Allow access to account settings, 2FA, authorized applications, and
account deletions to unconfirmed and pending users, as well as
users who had their accounts disabled. Suspended users cannot update
their e-mail or password or delete their account.
Display account status on account settings page, for example, when
an account is frozen, limited, unconfirmed or pending review.
After sign up, login users straight away and show a simple page that
tells them the status of their account with links to account settings
and logout, to reduce onboarding friction and allow users to correct
wrongly typed e-mail addresses.
Move the final sign-up step of SSO integrations to be the same
as above to reduce code duplication.
2019-07-22 04:48:50 -04:00
|
|
|
|
|
|
|
.fields-row
|
|
|
|
.fields-row__column.fields-group.fields-row__column-6
|
2020-08-12 06:11:15 -04:00
|
|
|
= f.input :password, wrapper: :with_label, label: t('simple_form.labels.defaults.new_password'), input_html: { 'aria-label' => t('simple_form.labels.defaults.new_password'), :autocomplete => 'off', :minlength => User.password_length.first, :maxlength => User.password_length.last }, hint: t('simple_form.hints.defaults.password'), disabled: current_account.suspended?
|
Change unconfirmed user login behaviour (#11375)
Allow access to account settings, 2FA, authorized applications, and
account deletions to unconfirmed and pending users, as well as
users who had their accounts disabled. Suspended users cannot update
their e-mail or password or delete their account.
Display account status on account settings page, for example, when
an account is frozen, limited, unconfirmed or pending review.
After sign up, login users straight away and show a simple page that
tells them the status of their account with links to account settings
and logout, to reduce onboarding friction and allow users to correct
wrongly typed e-mail addresses.
Move the final sign-up step of SSO integrations to be the same
as above to reduce code duplication.
2019-07-22 04:48:50 -04:00
|
|
|
.fields-row__column.fields-group.fields-row__column-6
|
|
|
|
= f.input :password_confirmation, wrapper: :with_label, label: t('simple_form.labels.defaults.confirm_new_password'), input_html: { 'aria-label' => t('simple_form.labels.defaults.confirm_new_password'), :autocomplete => 'off' }, disabled: current_account.suspended?
|
2016-10-13 20:28:49 -04:00
|
|
|
|
2018-02-02 04:18:55 -05:00
|
|
|
.actions
|
Change unconfirmed user login behaviour (#11375)
Allow access to account settings, 2FA, authorized applications, and
account deletions to unconfirmed and pending users, as well as
users who had their accounts disabled. Suspended users cannot update
their e-mail or password or delete their account.
Display account status on account settings page, for example, when
an account is frozen, limited, unconfirmed or pending review.
After sign up, login users straight away and show a simple page that
tells them the status of their account with links to account settings
and logout, to reduce onboarding friction and allow users to correct
wrongly typed e-mail addresses.
Move the final sign-up step of SSO integrations to be the same
as above to reduce code duplication.
2019-07-22 04:48:50 -04:00
|
|
|
= f.button :button, t('generic.save_changes'), type: :submit, class: 'button', disabled: current_account.suspended?
|
2018-02-02 04:18:55 -05:00
|
|
|
- else
|
2018-02-28 13:04:53 -05:00
|
|
|
%p.hint= t('users.seamless_external_login')
|
2017-06-14 12:01:27 -04:00
|
|
|
|
2018-09-18 10:45:58 -04:00
|
|
|
%hr.spacer/
|
|
|
|
|
2017-06-25 10:54:30 -04:00
|
|
|
= render 'sessions'
|
|
|
|
|
2020-09-11 14:56:35 -04:00
|
|
|
- unless current_account.suspended?
|
|
|
|
%hr.spacer/
|
2019-09-28 23:03:19 -04:00
|
|
|
|
2020-09-11 14:56:35 -04:00
|
|
|
%h3= t('auth.migrate_account')
|
|
|
|
%p.muted-hint= t('auth.migrate_account_html', path: settings_migration_path)
|
2019-09-28 23:03:19 -04:00
|
|
|
|
2020-09-11 14:56:35 -04:00
|
|
|
%hr.spacer/
|
2019-09-28 23:03:19 -04:00
|
|
|
|
2020-09-11 14:56:35 -04:00
|
|
|
%h3= t('migrations.incoming_migrations')
|
|
|
|
%p.muted-hint= t('migrations.incoming_migrations_html', path: settings_aliases_path)
|
2019-09-28 23:03:19 -04:00
|
|
|
|
2022-10-06 04:16:47 -04:00
|
|
|
%hr.spacer/
|
2019-09-28 23:03:19 -04:00
|
|
|
|
2022-10-06 04:16:47 -04:00
|
|
|
%h3= t('auth.delete_account')
|
|
|
|
%p.muted-hint= t('auth.delete_account_html', path: settings_delete_path)
|