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

@@ -116,6 +116,8 @@
<%= link_to_user user %> created their account.
<% when "user_deletion" %>
<%= link_to_user user %> deleted their account.
<% when "user_undeletion" %>
<%= link_to_user user %>'s account was undeleted.
<% when "password_reset" %>
<%= link_to_user user %> reset their password.
<% when "password_change" %>