diff --git a/app/controllers/accounts_controller.rb b/app/controllers/accounts_controller.rb index 49314f32..162d553c 100644 --- a/app/controllers/accounts_controller.rb +++ b/app/controllers/accounts_controller.rb @@ -47,7 +47,8 @@ class AccountsController < ApplicationController authorize!(:manage, current_account) true_user.skip_reconfirmation! - true_user.update!(locked_at: Time.current, email: true_user.email.sub('@', '+removed@')) + true_user.update!(locked_at: Time.current, archived_at: Time.current, + email: true_user.email.sub('@', '+removed@')) true_user.account.update!(archived_at: Time.current) # rubocop:disable Layout/LineLength