diff options
Diffstat (limited to 'app')
-rw-r--r-- | app/controllers/settings/deletes_controller.rb | 2 | ||||
-rw-r--r-- | app/services/suspend_account_service.rb | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/app/controllers/settings/deletes_controller.rb b/app/controllers/settings/deletes_controller.rb index 55c18345b..dd18b4c2f 100644 --- a/app/controllers/settings/deletes_controller.rb +++ b/app/controllers/settings/deletes_controller.rb @@ -22,6 +22,6 @@ class Settings::DeletesController < ApplicationController private def delete_params - params.permit(:password) + params.require(:form_delete_confirmation).permit(:password) end end diff --git a/app/services/suspend_account_service.rb b/app/services/suspend_account_service.rb index 1e3a51e4e..983c5495b 100644 --- a/app/services/suspend_account_service.rb +++ b/app/services/suspend_account_service.rb @@ -5,8 +5,8 @@ class SuspendAccountService < BaseService @account = account purge_user if remove_user - purge_content purge_profile + purge_content unsubscribe_push_subscribers end |