users: add ability to undelete accounts.

Add ability to undelete accounts from within the console. Their password is reset, their name is
restored to their last known user name, and a mod action is logged.
This commit is contained in:
evazion
2022-12-02 23:12:56 -06:00
parent d7d3427488
commit ed0716693b
5 changed files with 38 additions and 0 deletions

View File

@@ -15,6 +15,7 @@ class UserEvent < ApplicationRecord
logout: 100,
user_creation: 200,
user_deletion: 300,
user_undeletion: 310,
password_reset: 400,
password_change: 500,
email_change: 600,