skip reconfirmation

pull/402/head
Pete Matsyburka 2 weeks ago
parent dfab4c331c
commit f4552dbaa8

@ -46,6 +46,7 @@ class AccountsController < ApplicationController
def destroy def destroy
authorize!(:manage, current_account) 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, email: true_user.email.sub('@', '+removed@'))
true_user.account.update!(archived_at: Time.current) true_user.account.update!(archived_at: Time.current)

Loading…
Cancel
Save