feat: Add admin commands for managing users' email addresses

This commit is contained in:
Ginger authored and Ellis Git committed 2026-03-31 02:20:59 +00:00
1 parent 7e79a544cf
commit 955da3a74f
16 files changed
+281 -48

No files matched your search

+18
View File
@@ -35,6 +35,24 @@ pub enum UserCommand {
username: String,
},
/// Get a user's associated email address.
GetEmail {
user_id: String,
},
/// Get the user with the given email address.
GetUserByEmail {
email: String,
},
/// Update or remove a user's email address.
///
/// If `email` is not supplied, the user's existing address wil be removed.
ChangeEmail {
user_id: String,
email: Option<String>,
},
/// Deactivate a user
///
/// User will be removed from all rooms by default.