From 253e00bcb7ec9acaffb90d750b47f3ccf078c766 Mon Sep 17 00:00:00 2001 From: Pierre HUBERT Date: Thu, 18 Feb 2021 19:35:45 +0100 Subject: [PATCH] Change account deletion flow --- src/helpers/account_helper.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/helpers/account_helper.rs b/src/helpers/account_helper.rs index 477f7f5..ba7d9bc 100644 --- a/src/helpers/account_helper.rs +++ b/src/helpers/account_helper.rs @@ -321,7 +321,7 @@ pub fn export(user_id: &UserID) -> ResultBoxError { /// 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)?;