1
0
mirror of https://gitlab.com/comunic/comunicapiv3 synced 2025-11-18 08:08:05 +00:00

Administrators can create password recovery links

This commit is contained in:
2021-07-13 17:28:48 +02:00
parent 71254c47f1
commit 8ade67d899
5 changed files with 39 additions and 1 deletions

View File

@@ -16,6 +16,7 @@ pub enum AdminAction {
RemoveAdminRole { target: AdminID, role: String },
AccessUserPage { user_id: UserID, user_name: String },
ChangedEmailAddress { user_id: UserID, user_name: String, old_mail: String, new_mail: String },
CreatePasswordRecoveryLink { user_id: UserID, user_name: String },
UnsupportedAction { raw_data: String },
}
@@ -54,6 +55,9 @@ impl AdminAction {
AdminAction::ChangedEmailAddress { .. } =>
{ "Changed email address of user #{user_id} '{user_name}' from {old_mail} to {new_mail}" }
AdminAction::CreatePasswordRecoveryLink { .. } =>
{ "Created a password recovery link for user #{user_id} '{user_name}'." }
AdminAction::UnsupportedAction { .. } => { "Unsupported action. Raw data: {raw_data}" }
}
}