summaryrefslogtreecommitdiffstats
path: root/lib/user.php
diff options
context:
space:
mode:
authorMichael Gapczynski <GapczynskiM@gmail.com>2012-01-04 15:19:16 -0500
committerMichael Gapczynski <GapczynskiM@gmail.com>2012-01-04 15:19:16 -0500
commitb6d66c4727e50ab9e9ade0e804e3fda98a120dd3 (patch)
treead30665e41534df6f2a67bc9d196ee87709a5e71 /lib/user.php
parente0a058c732cc9d1f279cd6604623d9bf7c196744 (diff)
downloadnextcloud-server-b6d66c4727e50ab9e9ade0e804e3fda98a120dd3.tar.gz
nextcloud-server-b6d66c4727e50ab9e9ade0e804e3fda98a120dd3.zip
Remove the keys in preferences when a user is deleted - Thanks rogerc
Diffstat (limited to 'lib/user.php')
-rw-r--r--lib/user.php3
1 files changed, 2 insertions, 1 deletions
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;