From b6d66c4727e50ab9e9ade0e804e3fda98a120dd3 Mon Sep 17 00:00:00 2001 From: Michael Gapczynski Date: Wed, 4 Jan 2012 15:19:16 -0500 Subject: [PATCH] Remove the keys in preferences when a user is deleted - Thanks rogerc --- lib/user.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/user.php b/lib/user.php index 0a5881ec0f8..34f44f572e0 100644 --- a/lib/user.php +++ b/lib/user.php @@ -169,7 +169,8 @@ class OC_User { foreach( OC_Group::getUserGroups( $uid ) as $i ){ OC_Group::removeFromGroup( $uid, $i ); } - + // Delete the user's keys in preferences + OC_Preferences::deleteUser($uid); // Emit and exit OC_Hook::emit( "OC_User", "post_deleteUser", array( "uid" => $uid )); return true; -- 2.39.5