1
0
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:
Pierre HUBERT 2021-02-18 19:35:45 +01:00
parent d3c1ee700d
commit 253e00bcb7

View File

@ -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)?;