mirror of
https://github.com/funamitech/mastodon
synced 2024-12-05 18:28:50 +09:00
964ae8eee5
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.
24 lines
821 B
Plaintext
24 lines
821 B
Plaintext
- content_for :page_title do
|
|
= t('auth.setup.title')
|
|
|
|
- if missing_email?
|
|
= simple_form_for(@user, url: auth_setup_path) do |f|
|
|
= render 'shared/error_messages', object: @user
|
|
|
|
.fields-group
|
|
%p.hint= t('auth.setup.email_below_hint_html')
|
|
|
|
.fields-group
|
|
= f.input :email, required: true, hint: false, input_html: { 'aria-label' => t('simple_form.labels.defaults.email'), :autocomplete => 'off' }
|
|
|
|
.actions
|
|
= f.submit t('admin.accounts.change_email.label'), class: 'button'
|
|
- else
|
|
.simple_form
|
|
%p.hint= t('auth.setup.email_settings_hint_html', email: content_tag(:strong, @user.email))
|
|
|
|
.form-footer
|
|
%ul.no-list
|
|
%li= link_to t('settings.account_settings'), edit_user_registration_path
|
|
%li= link_to t('auth.logout'), destroy_user_session_path, data: { method: :delete }
|