mirror of
https://github.com/docusealco/docuseal
synced 2026-11-10 07:42:32 -05:00
archive account
This commit is contained in:
1 parent
fa91c6d6be
commit
99b3247cf7
1 file changed
+2
-1
@@ -47,7 +47,8 @@ class AccountsController < ApplicationController
|
|||||||
authorize!(:manage, current_account)
|
authorize!(:manage, current_account)
|
||||||
|
|
||||||
true_user.skip_reconfirmation!
|
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)
|
true_user.account.update!(archived_at: Time.current)
|
||||||
|
|
||||||
# rubocop:disable Layout/LineLength
|
# rubocop:disable Layout/LineLength
|
||||||
|
|||||||
Reference in new issue
Block a user