feat: Add command to forcefully log out all of a user's devices

This commit is contained in:
timedout
2026-01-05 19:51:11 +00:00
parent 9552dd7485
commit a8209d1dd9
2 changed files with 38 additions and 0 deletions
+12
View File
@@ -59,6 +59,18 @@ pub enum UserCommand {
force: bool,
},
/// - Forcefully log a user out of all of their devices.
///
/// This will invalidate all access tokens for the specified user,
/// effectively logging them out from all sessions.
/// Note that this is destructive and may result in data loss for the user,
/// such as encryption keys. Use with caution. Can only be used in the admin
/// room.
Logout {
/// Username of the user to log out
user_id: String,
},
/// - Suspend a user
///
/// Suspended users are able to log in, sync, and read messages, but are not