mirror of
https://gitlab.com/comunic/comunicapiv3
synced 2024-11-25 23:09:22 +00:00
Change account deletion flow
This commit is contained in:
parent
d3c1ee700d
commit
253e00bcb7
@ -321,7 +321,7 @@ pub fn export(user_id: &UserID) -> ResultBoxError<AccountExport> {
|
||||
/// Delete a user's account
|
||||
pub fn delete(user_id: &UserID) -> ResultBoxError {
|
||||
// Close all WebSockets of user
|
||||
user_ws_controller::disconnect_user_from_all_sockets(user_id)?;
|
||||
destroy_all_user_tokens(user_id)?;
|
||||
|
||||
// Delete all group membership
|
||||
groups_helper::delete_all_user_groups(user_id)?;
|
||||
|
Loading…
Reference in New Issue
Block a user