From 7d16410ab2b78c60ec6f91f1fa4a265068f8b933 Mon Sep 17 00:00:00 2001 From: Pierre HUBERT Date: Fri, 22 Jan 2021 18:24:02 +0100 Subject: [PATCH] Destroy all user login tokens when deleting his account --- src/helpers/account_helper.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/helpers/account_helper.rs b/src/helpers/account_helper.rs index e6db4b6..3e5d6e9 100644 --- a/src/helpers/account_helper.rs +++ b/src/helpers/account_helper.rs @@ -343,7 +343,8 @@ pub fn delete(user_id: &UserID) -> ResultBoxError { // Delete all custom user emojies custom_emojies_helper::delete_all_user(user_id)?; - // TODO : continue work here + // Delete connections to all services + destroy_all_user_tokens(user_id)?; Ok(()) } \ No newline at end of file