]> cat aescling's git repositories - mastodon.git/commit
Change unconfirmed user login behaviour (#11375)
authorEugen Rochko <eugen@zeonfederated.com>
Mon, 22 Jul 2019 08:48:50 +0000 (10:48 +0200)
committerGitHub <noreply@github.com>
Mon, 22 Jul 2019 08:48:50 +0000 (10:48 +0200)
commit964ae8eee593687f922c873fa7b378bb6e3e39bb
treeeb67d6521d6cecc6679e75800c4d170ea5883fa0
parentfea903f574cd59e6938c775427727337d7f929c3
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.
35 files changed:
app/controllers/about_controller.rb
app/controllers/api/base_controller.rb
app/controllers/application_controller.rb
app/controllers/auth/confirmations_controller.rb
app/controllers/auth/omniauth_callbacks_controller.rb
app/controllers/auth/registrations_controller.rb
app/controllers/auth/sessions_controller.rb
app/controllers/auth/setup_controller.rb [new file with mode: 0644]
app/controllers/oauth/authorized_applications_controller.rb
app/controllers/settings/deletes_controller.rb
app/controllers/settings/sessions_controller.rb
app/controllers/settings/two_factor_authentication/confirmations_controller.rb
app/controllers/settings/two_factor_authentication/recovery_codes_controller.rb
app/controllers/settings/two_factor_authentications_controller.rb
app/javascript/styles/mastodon/admin.scss
app/javascript/styles/mastodon/forms.scss
app/models/concerns/omniauthable.rb
app/models/user.rb
app/views/auth/confirmations/finish_signup.html.haml [deleted file]
app/views/auth/registrations/_sessions.html.haml
app/views/auth/registrations/_status.html.haml [new file with mode: 0644]
app/views/auth/registrations/edit.html.haml
app/views/auth/setup/show.html.haml [new file with mode: 0644]
app/views/oauth/authorized_applications/index.html.haml
config/locales/en.yml
config/routes.rb
db/seeds.rb
spec/controllers/api/base_controller_spec.rb
spec/controllers/application_controller_spec.rb
spec/controllers/auth/confirmations_controller_spec.rb
spec/controllers/auth/registrations_controller_spec.rb
spec/controllers/auth/sessions_controller_spec.rb
spec/controllers/settings/deletes_controller_spec.rb
spec/features/log_in_spec.rb
spec/models/user_spec.rb