diff --git a/src/helpers/account_helper.rs b/src/helpers/account_helper.rs index b35c869..3f1bb18 100644 --- a/src/helpers/account_helper.rs +++ b/src/helpers/account_helper.rs @@ -117,6 +117,8 @@ pub fn destroy_login_tokens(id: &UserID, client: &APIClient) -> ResultBoxError<( /// Destroy all login tokens of a user pub fn destroy_all_user_tokens(id: &UserID) -> ResultBoxError { + user_ws_controller::disconnect_user_from_all_sockets(id)?; + database::DeleteQuery::new(USER_ACCESS_TOKENS_TABLE) .cond_user_id("user_id", id) .exec()