Account deletion (#3728)
* Add form for account deletion * If avatar or header are gone from source, remove them * Add option to have SuspendAccountService remove user record, add tests * Exclude suspended accounts from search
Showing
- app/controllers/settings/deletes_controller.rb 27 additions, 0 deletionsapp/controllers/settings/deletes_controller.rb
- app/javascript/styles/admin.scss 15 additions, 0 deletionsapp/javascript/styles/admin.scss
- app/javascript/styles/forms.scss 3 additions, 0 deletionsapp/javascript/styles/forms.scss
- app/models/account.rb 3 additions, 0 deletionsapp/models/account.rb
- app/models/form/delete_confirmation.rb 7 additions, 0 deletionsapp/models/form/delete_confirmation.rb
- app/services/suspend_account_service.rb 6 additions, 1 deletionapp/services/suspend_account_service.rb
- app/services/update_remote_profile_service.rb 13 additions, 2 deletionsapp/services/update_remote_profile_service.rb
- app/views/auth/registrations/edit.html.haml 5 additions, 0 deletionsapp/views/auth/registrations/edit.html.haml
- app/views/settings/deletes/show.html.haml 16 additions, 0 deletionsapp/views/settings/deletes/show.html.haml
- app/workers/admin/suspension_worker.rb 2 additions, 2 deletionsapp/workers/admin/suspension_worker.rb
- config/locales/en.yml 11 additions, 0 deletionsconfig/locales/en.yml
- config/locales/simple_form.ru.yml 1 addition, 1 deletionconfig/locales/simple_form.ru.yml
- config/navigation.rb 1 addition, 1 deletionconfig/navigation.rb
- config/routes.rb 1 addition, 0 deletionsconfig/routes.rb
- spec/controllers/settings/deletes_controller_spec.rb 72 additions, 0 deletionsspec/controllers/settings/deletes_controller_spec.rb
Loading
Please register or sign in to comment