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:
@@ -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}" }
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user