removed email

This commit is contained in:
Pete Matsyburka
2025-04-16 00:54:36 +03:00
parent 2b5f772feb
commit 501b91a603
+1 -1
View File
@@ -45,7 +45,7 @@ class AccountsController < ApplicationController
def destroy
authorize!(:manage, current_account)
true_user.update!(locked_at: Time.current)
true_user.update!(locked_at: Time.current, email: true_user.email.sub('@', '+removed@'))
# rubocop:disable Layout/LineLength
render turbo_stream: turbo_stream.replace(